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/.gitattributes b/.gitattributes new file mode 100644 index 000000000..65f0cf8c6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,52 @@ +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain + +*.jpg binary +*.png binary +*.gif binary + +*.cs text=auto diff=csharp +*.vb text=auto +*.resx text=auto +*.c text=auto +*.cpp text=auto +*.cxx text=auto +*.h text=auto +*.hxx text=auto +*.py text=auto +*.rb text=auto +*.java text=auto +*.html text=auto +*.htm text=auto +*.css text=auto +*.scss text=auto +*.sass text=auto +*.less text=auto +*.js text=auto +*.lisp text=auto +*.clj text=auto +*.sql text=auto +*.php text=auto +*.lua text=auto +*.m text=auto +*.asm text=auto +*.erl text=auto +*.fs text=auto +*.fsx text=auto +*.hs text=auto + +*.csproj text=auto +*.vbproj text=auto +*.fsproj text=auto +*.dbproj text=auto +*.sln text=auto eol=crlf + +src/KubernetesClient/generated/** linguist-generated 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 new file mode 100644 index 000000000..26d585ec7 --- /dev/null +++ b/.github/workflows/buildtest.yaml @@ -0,0 +1,90 @@ +name: Build and Test + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + name: Dotnet build + 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 --configuration Release + - name: Test + 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@v5 + with: + fetch-depth: 0 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Setup dotnet SDK + uses: actions/setup-dotnet@v5 + with: + 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: + fetch-depth: 0 + - name: Setup dotnet + uses: actions/setup-dotnet@v5 + with: + 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" -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 + +on: + pull_request: + types: [assigned, opened, synchronize, reopened] diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..6355396eb --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,62 @@ +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 new file mode 100644 index 000000000..fa654822f --- /dev/null +++ b/.github/workflows/nuget.yaml @@ -0,0 +1,60 @@ +name: Nuget + +on: + release: + types: [ released ] + +jobs: + nuget: + + 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 + + - name: dotnet pack + run: dotnet pack -c Release src/nuget.proj -o pkg --include-symbols + + - name: dotnet nuget push + 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 201f8578f..46bc886d3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,19 @@ .vs obj/ bin/ +**/TestResults # User-specific VS files *.suo *.user *.userosscache *.sln.docstates + +# JetBrains Rider +.idea/ +*.sln.iml + +launchSettings.json +*.DotSettings + +*.sln \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6051ec73a..000000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: csharp -sudo: false -matrix: - include: - - dotnet: 2.0.0 - mono: none - dist: trusty - -script: - - ./ci.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..bac9ba9ab --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,22 @@ +# Contributing + +Thanks for taking the time to join our community and start contributing! + +Please remember to read and observe the [Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). + +This project accepts contribution via github [pull requests](https://help.github.com/articles/about-pull-requests/). This document outlines the process to help get your contribution accepted. Please also read the [Kubernetes contributor guide](https://github.com/kubernetes/community/blob/master/contributors/guide/README.md) which provides detailed instructions on how to get your ideas and bug fixes seen and accepted. + +## Sign the Contributor License Agreement +We'd love to accept your patches! Before we can accept them you need to sign Cloud Native Computing Foundation (CNCF) [CLA](https://github.com/kubernetes/community/blob/master/CLA.md). + +## Reporting an issue +If you have any problem with the package or any suggestions, please file an [issue](https://github.com/kubernetes-client/csharp/issues). + +## Contributing a Patch +1. Submit an issue describing your proposed change to the repo. +2. Fork this repo, develop and test your code changes. +3. Submit a pull request. +4. The bot will automatically assigns someone to review your PR. Check the full list of bot commands [here](https://prow.k8s.io/command-help). + +### Contact +You can reach the maintainers of this project at [SIG API Machinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery) or on the [#kubernetes-client](https://kubernetes.slack.com/messages/kubernetes-client) channel on the Kubernetes slack. 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 new file mode 100644 index 000000000..2a5ed0116 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,41 @@ + + + + $(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 + true + portable + 13.0 + + + + true + + + + + + diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 000000000..517121e49 --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,5 @@ + + + + + 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/LICENSE b/LICENSE index 8dada3eda..90fe7c792 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {yyyy} {name of copyright owner} + Copyright 2017 the Kubernetes Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/OWNERS b/OWNERS index 74eace9c9..ef8b7dd29 100644 --- a/OWNERS +++ b/OWNERS @@ -1,7 +1,10 @@ +# See the OWNERS docs at https://go.k8s.io/owners + approvers: - brendandburns -- krabhishek8260 -reviewer: +- tg123 +reviewers: - brendandburns -- krabhishek8260 - +- tg123 +emeritus_approvers: +- krabhishek8260 # 4/4/2022 diff --git a/README.md b/README.md index e214a5875..c8eb91626 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,90 @@ # 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 ``` -# Generating the Client Code +## Generate with Visual Studio -## Prerequisites +``` +dotnet msbuild /Restore /t:SlnGen kubernetes-client.proj +``` -Check out the generator project into some other directory -(henceforth `$GEN_DIR`) +## 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 +[known-issues](https://github.com/kubernetes-client/csharp#known-issues). -```bash -cd $GEN_DIR/.. -git clone https://github.com/kubernetes-client/gen -``` +You should also be able to authenticate with the in-cluster service +account using the `InClusterConfig` function shown below. -Install the [`autorest` tool](https://github.com/azure/autorest): +## Monitoring +Metrics are built in to HttpClient using System.Diagnostics.DiagnosticsSource. +https://learn.microsoft.com/en-us/dotnet/core/diagnostics/built-in-metrics-system-net -```bash -npm install autorest +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 + +### Creating the client +```c# +// Load from the default kubeconfig on the machine. +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); + +// Load from a specific file: +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(Environment.GetEnvironmentVariable("KUBECONFIG")); + +// Load from in-cluster configuration: +var config = KubernetesClientConfiguration.InClusterConfig() + +// Use the config object to create a client. +var client = new Kubernetes(config); ``` -## Generating code +### Listing Objects +```c# +var namespaces = client.CoreV1.ListNamespace(); +foreach (var ns in namespaces.Items) { + Console.WriteLine(ns.Metadata.Name); + var list = client.CoreV1.ListNamespacedPod(ns.Metadata.Name); + foreach (var item in list.Items) + { + Console.WriteLine(item.Metadata.Name); + } +} +``` -```bash -# Where REPO_DIR points to the root of the csharp repository -cd ${REPO_DIR}/csharp/src -${GEN_DIR}/openapi/csharp.sh generated csharp.settings +### Creating and Deleting Objects +```c# +var ns = new V1Namespace +{ + Metadata = new V1ObjectMeta + { + Name = "test" + } +}; + +var result = client.CoreV1.CreateNamespace(ns); +Console.WriteLine(result); + +var status = client.CoreV1.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions()); ``` -# Usage +## Examples + +There is extensive example code in the [examples directory](https://github.com/kubernetes-client/csharp/tree/master/examples). -## Running the Examples +### Running the examples ```bash git clone git@github.com:kubernetes-client/csharp.git @@ -46,14 +92,105 @@ cd csharp\examples\simple dotnet run ``` +## Known issues + +While the preferred way of connecting to a remote cluster from local machine is: + +```c# +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +var client = new Kubernetes(config); +``` + +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 +Starting to serve on 127.0.0.1:8001 +``` + +and changing config: + +```c# +var config = new KubernetesClientConfiguration { Host = "http://127.0.0.1:8001/" }; +``` + +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 +To run the tests: ```bash cd csharp\tests dotnet restore dotnet test ``` + +# Update the API model + +## Prerequisites + +You'll need a Linux machine with Docker. + +Check out the generator project into some other directory +(henceforth `$GEN_DIR`). + +```bash +cd $GEN_DIR/.. +git clone https://github.com/kubernetes-client/gen +``` + +## Generating new swagger.json + +```bash +# Where REPO_DIR points to the root of the csharp repository +cd +${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp.settings +``` + +# 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.
+ + 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.
+ + 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 + +Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute. diff --git a/SECURITY_CONTACTS b/SECURITY_CONTACTS new file mode 100644 index 000000000..df0df1c5f --- /dev/null +++ b/SECURITY_CONTACTS @@ -0,0 +1,14 @@ +# Defined below are the security contacts for this repo. +# +# They are the contact point for the Product Security Team to reach out +# to for triaging and handling of incoming issues. +# +# The below names agree to abide by the +# [Embargo Policy](https://github.com/kubernetes/sig-release/blob/master/security-release-process-documentation/security-release-process.md#embargo-policy) +# and will be removed and replaced if they violate that agreement. +# +# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE +# INSTRUCTIONS AT https://kubernetes.io/security/ + +brendandburns +tg123 diff --git a/ci.sh b/ci.sh deleted file mode 100755 index f40f2fd65..000000000 --- a/ci.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# Exit on any error -set -e - -# Ensure no compile errors in all projects -find . -name *.csproj -exec dotnet build {} \; - -# Execute Unit tests -cd tests -dotnet restore -dotnet test diff --git a/code-of-conduct.md b/code-of-conduct.md new file mode 100644 index 000000000..0d15c00cf --- /dev/null +++ b/code-of-conduct.md @@ -0,0 +1,3 @@ +# Kubernetes Community Code of Conduct + +Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) diff --git a/csharp.settings b/csharp.settings index bd57dc142..0110958c8 100644 --- a/csharp.settings +++ b/csharp.settings @@ -1,3 +1,3 @@ -export KUBERNETES_BRANCH=v1.8.4 +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/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 new file mode 100755 index 000000000..cfdce7d8e --- /dev/null +++ b/examples/attach/Attach.cs @@ -0,0 +1,31 @@ +using k8s; +using k8s.Models; +using System; +using System.Threading.Tasks; + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var list = client.CoreV1.ListNamespacedPod("default"); +var pod = list.Items[0]; +await AttachToPod(client, pod).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 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 new file mode 100755 index 000000000..5644cab8a --- /dev/null +++ b/examples/attach/attach.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + 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 new file mode 100644 index 000000000..ad1b7f9c4 --- /dev/null +++ b/examples/customResource/CustomResourceDefinition.cs @@ -0,0 +1,45 @@ +using k8s; +using k8s.Models; +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.")] + +namespace customResource +{ + public class CustomResourceDefinition + { + public string Version { get; set; } + + public string Group { get; set; } + + public string PluralName { get; set; } + + public string Kind { get; set; } + + public string Namespace { get; set; } + } + + public abstract class CustomResource : KubernetesObject, IMetadata + { + [JsonPropertyName("metadata")] + public V1ObjectMeta Metadata { get; set; } + } + + public abstract class CustomResource : CustomResource + { + [JsonPropertyName("spec")] + public TSpec Spec { get; set; } + + [JsonPropertyName("status")] + public TStatus Status { get; set; } + } + + public class CustomResourceList : KubernetesObject + where T : CustomResource + { + public V1ListMeta Metadata { get; set; } + public List Items { get; set; } + } +} diff --git a/examples/customResource/Program.cs b/examples/customResource/Program.cs new file mode 100644 index 000000000..726852a7f --- /dev/null +++ b/examples/customResource/Program.cs @@ -0,0 +1,107 @@ +using Json.Patch; +using k8s; +using k8s.Autorest; +using k8s.Models; +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Threading.Tasks; + + +namespace customResource +{ + public class Program + { + private static async Task Main(string[] args) + { + Console.WriteLine("starting main()..."); + + // creating the k8s client + var k8SClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile(); + IKubernetes client = new Kubernetes(k8SClientConfig); + + // creating a K8s client for the CRD + var myCRD = Utils.MakeCRD(); + Console.WriteLine("working with CRD: {0}.{1}", myCRD.PluralName, myCRD.Group); + var generic = new GenericClient(client, myCRD.Group, myCRD.Version, myCRD.PluralName); + + // creating a sample custom resource content + var myCr = Utils.MakeCResource(); + + try + { + Console.WriteLine("creating CR {0}", myCr.Metadata.Name); + var response = await client.CustomObjects.CreateNamespacedCustomObjectWithHttpMessagesAsync( + myCr, + myCRD.Group, myCRD.Version, + myCr.Metadata.NamespaceProperty ?? "default", + myCRD.PluralName).ConfigureAwait(false); + } + 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 (HttpOperationException) + { + } + + // listing the cr instances + Console.WriteLine("CR list:"); + var crs = await generic.ListNamespacedAsync>(myCr.Metadata.NamespaceProperty ?? "default").ConfigureAwait(false); + foreach (var cr in crs.Items) + { + Console.WriteLine("- CR Item {0} = {1}", crs.Items.IndexOf(cr), cr.Metadata.Name); + } + + var old = JsonSerializer.SerializeToDocument(myCr); + myCr.Metadata.Labels.TryAdd("newKey", "newValue"); + + 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.CustomObjects.PatchNamespacedCustomObjectAsync( + crPatch, + myCRD.Group, + myCRD.Version, + myCr.Metadata.NamespaceProperty ?? "default", + myCRD.PluralName, + myCr.Metadata.Name).ConfigureAwait(false); + } + catch (HttpOperationException httpOperationException) + { + var phase = httpOperationException.Response.ReasonPhrase; + var content = httpOperationException.Response.Content; + Console.WriteLine("response content: {0}", content); + Console.WriteLine("response phase: {0}", phase); + } + + // getting the updated custom resource + var fetchedCR = await generic.ReadNamespacedAsync( + myCr.Metadata.NamespaceProperty ?? "default", + myCr.Metadata.Name).ConfigureAwait(false); + + Console.WriteLine("fetchedCR = {0}", fetchedCR.ToString()); + + // deleting the custom resource + try + { + var status = await generic.DeleteNamespacedAsync( + myCr.Metadata.NamespaceProperty ?? "default", + myCr.Metadata.Name).ConfigureAwait(false); + + Console.WriteLine($"Deleted the CR status: {status}"); + } + catch (Exception exception) + { + Console.WriteLine("Exception type {0}", exception); + } + } + } +} diff --git a/examples/customResource/README.md b/examples/customResource/README.md new file mode 100644 index 000000000..2fdb11703 --- /dev/null +++ b/examples/customResource/README.md @@ -0,0 +1,53 @@ +# Custom Resource Client Example + +This example demonstrates how to use the C# Kubernetes Client library to create, get and list custom resources. + +## Pre-requisits + +Make sure your have added the library package + +```shell +dotnet add package KubernetesClient +``` + +## Create Custom Resource Definition (CRD) + +Make sure the [CRD](./config/crd.yaml) is created, in order to create an instance of it after. + +```shell +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: + +```shell +kubectl create -f ./config/yaml-cr-instance.yaml +``` + +```shell +kubectl get customresources.csharp.com +``` + +## Execute the code + +The client uses the `BuildConfigFromConfigFile()` function. If the KUBECONFIG environment variable is set, then that path to the k8s config file will be used. + +`dotnet run` + +Expected output: + +``` +strating main()... +working with CRD: customresources.csharp.com +creating CR cr-instance-london +CR list: +- CR Item 0 = cr-instance-london +- CR Item 1 = cr-instance-paris +fetchedCR = cr-instance-london (Labels: {identifier : city, newKey : newValue}), Spec: London +Deleted the CR +``` + +## Under the hood + +For more details, you can look at the Generic client [implementation](https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient/GenericClient.cs) + diff --git a/examples/customResource/Utils.cs b/examples/customResource/Utils.cs new file mode 100644 index 000000000..8101c1d38 --- /dev/null +++ b/examples/customResource/Utils.cs @@ -0,0 +1,48 @@ +using k8s.Models; +using System.Collections.Generic; +namespace customResource +{ + public class Utils + { + // creats a CRD definition + public static CustomResourceDefinition MakeCRD() + { + var myCRD = new CustomResourceDefinition() + { + Kind = "CResource", + Group = "csharp.com", + Version = "v1alpha1", + PluralName = "customresources", + }; + + return myCRD; + } + + // creats a CR instance + public static CResource MakeCResource() + { + var myCResource = new CResource() + { + Kind = "CResource", + ApiVersion = "csharp.com/v1alpha1", + Metadata = new V1ObjectMeta + { + Name = "cr-instance-london", + NamespaceProperty = "default", + Labels = new Dictionary + { + { + "identifier", "city" + }, + }, + }, + // spec + Spec = new CResourceSpec + { + CityName = "London", + }, + }; + return myCResource; + } + } +} diff --git a/examples/customResource/cResource.cs b/examples/customResource/cResource.cs new file mode 100644 index 000000000..67440aee9 --- /dev/null +++ b/examples/customResource/cResource.cs @@ -0,0 +1,33 @@ +using k8s.Models; +using System.Text.Json.Serialization; + +namespace customResource +{ + public class CResource : CustomResource + { + public override string ToString() + { + var labels = "{"; + foreach (var kvp in Metadata.Labels) + { + labels += kvp.Key + " : " + kvp.Value + ", "; + } + + labels = labels.TrimEnd(',', ' ') + "}"; + + return $"{Metadata.Name} (Labels: {labels}), Spec: {Spec.CityName}"; + } + } + + public record CResourceSpec + { + [JsonPropertyName("cityName")] + public string CityName { get; set; } + } + + public record CResourceStatus : V1Status + { + [JsonPropertyName("temperature")] + public string Temperature { get; set; } + } +} diff --git a/examples/customResource/config/crd.yaml b/examples/customResource/config/crd.yaml new file mode 100644 index 000000000..424546f14 --- /dev/null +++ b/examples/customResource/config/crd.yaml @@ -0,0 +1,23 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: customresources.csharp.com +spec: + group: csharp.com + versions: + - name: v1alpha1 + storage: true + served: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + cityName: + type: string + names: + kind: CResource + plural: customresources + scope: Namespaced diff --git a/examples/customResource/config/yaml-cr-instance.yaml b/examples/customResource/config/yaml-cr-instance.yaml new file mode 100644 index 000000000..482dd48ff --- /dev/null +++ b/examples/customResource/config/yaml-cr-instance.yaml @@ -0,0 +1,8 @@ +apiVersion: csharp.com/v1alpha1 +kind: CResource +metadata: + name: cr-instance-paris + namespace: default +spec: + cityName: Paris + \ No newline at end of file diff --git a/examples/customResource/customResource.csproj b/examples/customResource/customResource.csproj new file mode 100644 index 000000000..ad2bdd739 --- /dev/null +++ b/examples/customResource/customResource.csproj @@ -0,0 +1,11 @@ + + + + Exe + + + + + + + diff --git a/examples/exec/Exec.cs b/examples/exec/Exec.cs new file mode 100755 index 000000000..20bbd2125 --- /dev/null +++ b/examples/exec/Exec.cs @@ -0,0 +1,28 @@ +using k8s; +using k8s.Models; +using System; +using System.Threading.Tasks; + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var list = client.CoreV1.ListNamespacedPod("default"); +var pod = list.Items[0]; +await ExecInPod(client, pod).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 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 new file mode 100755 index 000000000..52e6553de --- /dev/null +++ b/examples/exec/exec.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + diff --git a/examples/generic/Generic.cs b/examples/generic/Generic.cs new file mode 100644 index 000000000..f65fb944d --- /dev/null +++ b/examples/generic/Generic.cs @@ -0,0 +1,16 @@ +using k8s; +using k8s.Models; +using System; + +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); +} diff --git a/examples/generic/generic.csproj b/examples/generic/generic.csproj new file mode 100644 index 000000000..52e6553de --- /dev/null +++ b/examples/generic/generic.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + diff --git a/examples/labels/PodList.cs b/examples/labels/PodList.cs new file mode 100755 index 000000000..0c5df001d --- /dev/null +++ b/examples/labels/PodList.cs @@ -0,0 +1,39 @@ +using k8s; +using System; +using System.Collections.Generic; + +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) +{ + 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); + } + + 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); + } + + if (podList.Items.Count == 0) + { + Console.WriteLine("Empty!"); + } + + Console.WriteLine(); +} diff --git a/examples/labels/labels.csproj b/examples/labels/labels.csproj new file mode 100755 index 000000000..52e6553de --- /dev/null +++ b/examples/labels/labels.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + diff --git a/examples/logs/Logs.cs b/examples/logs/Logs.cs new file mode 100755 index 000000000..5293de579 --- /dev/null +++ b/examples/logs/Logs.cs @@ -0,0 +1,21 @@ +using k8s; +using System; + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting Request!"); + +var list = client.CoreV1.ListNamespacedPod("default"); +if (list.Items.Count == 0) +{ + Console.WriteLine("No pods!"); + return; +} + +var pod = list.Items[0]; + +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 new file mode 100755 index 000000000..52e6553de --- /dev/null +++ b/examples/logs/logs.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + diff --git a/examples/metrics/Program.cs b/examples/metrics/Program.cs new file mode 100644 index 000000000..f823bf54d --- /dev/null +++ b/examples/metrics/Program.cs @@ -0,0 +1,51 @@ +using k8s; +using System; +using System.Linq; +using System.Threading.Tasks; + +async Task NodesMetrics(IKubernetes client) +{ + var nodesMetrics = await client.GetKubernetesNodesMetricsAsync().ConfigureAwait(false); + + foreach (var item in nodesMetrics.Items) + { + Console.WriteLine(item.Metadata.Name); + + foreach (var metric in item.Usage) + { + Console.WriteLine($"{metric.Key}: {metric.Value}"); + } + } +} + +async Task PodsMetrics(IKubernetes client) +{ + var podsMetrics = await client.GetKubernetesPodsMetricsAsync().ConfigureAwait(false); + + if (!podsMetrics.Items.Any()) + { + Console.WriteLine("Empty"); + } + + foreach (var item in podsMetrics.Items) + { + 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); + } +} + +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 new file mode 100644 index 000000000..52e6553de --- /dev/null +++ b/examples/metrics/metrics.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + diff --git a/examples/namespace/Namespace.cs b/examples/namespace/Namespace.cs deleted file mode 100644 index 92b85c742..000000000 --- a/examples/namespace/Namespace.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.Net; -using System.Threading.Tasks; -using k8s; -using k8s.Models; - -namespace @namespace -{ - class NamespaceExample - { - static void ListNamespaces(IKubernetes client) { - var list = client.ListNamespace(); - foreach (var item in list.Items) { - Console.WriteLine(item.Metadata.Name); - } - if (list.Items.Count == 0) { - Console.WriteLine("Empty!"); - } - } - - static async Task DeleteAsync(IKubernetes client, string name, int delayMillis) { - while (true) { - await Task.Delay(delayMillis); - try - { - await client.ReadNamespaceAsync(name); - } 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 ex; - } - } - } catch (Microsoft.Rest.HttpOperationException ex) { - if (ex.Response.StatusCode == HttpStatusCode.NotFound) { - return; - } - throw ex; - } - } - } - - static void Delete(IKubernetes client, string name, int delayMillis) { - DeleteAsync(client, name, delayMillis).Wait(); - } - - private static void Main(string[] args) - { - var k8SClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(k8SClientConfig); - - ListNamespaces(client); - - var ns = new V1Namespace - { - Metadata = new V1ObjectMeta - { - Name = "test" - } - }; - - var result = client.CreateNamespace(ns); - Console.WriteLine(result); - - ListNamespaces(client); - - var status = client.DeleteNamespace(new V1DeleteOptions(), ns.Metadata.Name); - - if (status.HasObject) - { - var obj = status.ObjectView(); - Console.WriteLine(obj.Status.Phase); - - Delete(client, ns.Metadata.Name, 3 * 1000); - } - else - { - Console.WriteLine(status.Message); - } - - ListNamespaces(client); - } - } -} diff --git a/examples/namespace/NamespaceExample.cs b/examples/namespace/NamespaceExample.cs new file mode 100644 index 000000000..06e8757a4 --- /dev/null +++ b/examples/namespace/NamespaceExample.cs @@ -0,0 +1,89 @@ +using k8s; +using k8s.Models; +using System; +using System.Net; +using System.Threading.Tasks; + +void ListNamespaces(IKubernetes client) +{ + var list = client.CoreV1.ListNamespace(); + foreach (var item in list.Items) + { + Console.WriteLine(item.Metadata.Name); + } + + if (list.Items.Count == 0) + { + Console.WriteLine("Empty!"); + } +} + +async Task DeleteAsync(IKubernetes client, string name, int delayMillis) +{ + while (true) + { + await Task.Delay(delayMillis).ConfigureAwait(false); + try + { + await client.CoreV1.ReadNamespaceAsync(name).ConfigureAwait(false); + } + catch (AggregateException ex) + { + foreach (var innerEx in ex.InnerExceptions) + { + if (innerEx is k8s.Autorest.HttpOperationException exception) + { + var code = exception.Response.StatusCode; + if (code == HttpStatusCode.NotFound) + { + return; + } + + throw; + } + } + } + catch (k8s.Autorest.HttpOperationException ex) + { + if (ex.Response.StatusCode == HttpStatusCode.NotFound) + { + return; + } + + throw; + } + } +} + +void Delete(IKubernetes client, string name, int delayMillis) +{ + DeleteAsync(client, name, delayMillis).Wait(); +} + +var k8SClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(k8SClientConfig); + +ListNamespaces(client); + +var ns = new V1Namespace { Metadata = new V1ObjectMeta { Name = "test" } }; + +var result = client.CoreV1.CreateNamespace(ns); +Console.WriteLine(result); + +ListNamespaces(client); + +var status = client.CoreV1.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions()); + +if (status.HasObject) +{ + var obj = status.ObjectView(); + Console.WriteLine(obj.Status.Phase); + + 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 f35abd52b..f850aa91d 100644 --- a/examples/namespace/namespace.csproj +++ b/examples/namespace/namespace.csproj @@ -1,12 +1,7 @@ - - - - Exe - netcoreapp2.0 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 new file mode 100644 index 000000000..f8cefa67c --- /dev/null +++ b/examples/patch/Program.cs @@ -0,0 +1,35 @@ +using k8s; +using k8s.Models; +using System; +using System.Linq; + +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")); + +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 new file mode 100644 index 000000000..f850aa91d --- /dev/null +++ b/examples/patch/patch.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + diff --git a/examples/portforward/PortForward.cs b/examples/portforward/PortForward.cs new file mode 100644 index 000000000..ee095e073 --- /dev/null +++ b/examples/portforward/PortForward.cs @@ -0,0 +1,71 @@ +using k8s; +using k8s.Models; +using System; +using System.Net; +using System.Net.Sockets; +using System.Text; +using System.Threading.Tasks; + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +IKubernetes client = new Kubernetes(config); +Console.WriteLine("Starting port forward!"); + +var list = client.CoreV1.ListNamespacedPod("default"); +var pod = list.Items[0]; +await Forward(client, pod).ConfigureAwait(false); + +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(); + + var stream = demux.GetStream((byte?)0, (byte?)0); + + 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); + + Socket handler = null; + + // 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; + } + } + } + }); + + 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 new file mode 100644 index 000000000..e3b6154bb --- /dev/null +++ b/examples/portforward/portforward.csproj @@ -0,0 +1,7 @@ + + + + Exe + + + \ No newline at end of file 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/restart/restart.csproj b/examples/restart/restart.csproj new file mode 100644 index 000000000..0d5a49c4c --- /dev/null +++ b/examples/restart/restart.csproj @@ -0,0 +1,13 @@ + + + + Exe + enable + enable + + + + + + + diff --git a/examples/simple/PodList.cs b/examples/simple/PodList.cs index dd783c7a3..751622c16 100755 --- a/examples/simple/PodList.cs +++ b/examples/simple/PodList.cs @@ -1,25 +1,17 @@ -using System; -using k8s; - -namespace simple -{ - internal class PodList - { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - IKubernetes client = new Kubernetes(config); - Console.WriteLine("Starting Request!"); +using k8s; +using System; - var list = client.ListNamespacedPod("default"); - foreach (var item in list.Items) - { - Console.WriteLine(item.Metadata.Name); - } - if (list.Items.Count == 0) - { - Console.WriteLine("Empty!"); - } - } - } -} +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!"); +} diff --git a/examples/simple/simple.csproj b/examples/simple/simple.csproj index 270736f72..52e6553de 100755 --- a/examples/simple/simple.csproj +++ b/examples/simple/simple.csproj @@ -1,12 +1,7 @@ - - - - Exe - netcoreapp2.0 diff --git a/examples/watch/Program.cs b/examples/watch/Program.cs index 88514f77d..1aff65883 100644 --- a/examples/watch/Program.cs +++ b/examples/watch/Program.cs @@ -1,33 +1,39 @@ -using System; -using System.Threading; -using k8s; -using k8s.Models; - -namespace watch -{ - internal class Program - { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); - - IKubernetes client = new Kubernetes(config); - - var podlistResp = client.ListNamespacedPodWithHttpMessagesAsync("default", watch: true).Result; - 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"); - - var ctrlc = new ManualResetEventSlim(false); - Console.CancelKeyPress += (sender, eventArgs) => ctrlc.Set(); - ctrlc.Wait(); - } - } - } -} +using k8s; +using System; +using System.Threading; +using System.Threading.Tasks; + +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); + +IKubernetes client = new Kubernetes(config); + +var podlistResp = client.CoreV1.WatchListNamespacedPodAsync("default"); + +// 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=="); +} + +#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(); + } +} \ No newline at end of file diff --git a/examples/watch/watch.csproj b/examples/watch/watch.csproj index 698630e59..f850aa91d 100644 --- a/examples/watch/watch.csproj +++ b/examples/watch/watch.csproj @@ -2,11 +2,6 @@ Exe - netcoreapp2.0 - - - - 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 new file mode 100644 index 000000000..47b70bdfe --- /dev/null +++ b/examples/yaml/Program.cs @@ -0,0 +1,18 @@ +using k8s; +using k8s.Models; +using System; +using System.Collections.Generic; + +var typeMap = new Dictionary +{ + { "v1/Pod", typeof(V1Pod) }, + { "v1/Service", typeof(V1Service) }, + { "apps/v1/Deployment", typeof(V1Deployment) }, +}; + +var objects = await KubernetesYaml.LoadAllFromFileAsync(args[0], typeMap).ConfigureAwait(false); + +foreach (var obj in objects) +{ + Console.WriteLine(obj); +} diff --git a/examples/yaml/yaml.csproj b/examples/yaml/yaml.csproj new file mode 100644 index 000000000..d1e5b4724 --- /dev/null +++ b/examples/yaml/yaml.csproj @@ -0,0 +1,5 @@ + + + Exe + + \ No newline at end of file diff --git a/global.json b/global.json new file mode 100644 index 000000000..101665708 --- /dev/null +++ b/global.json @@ -0,0 +1,9 @@ +{ + "sdk": { + "version": "8.0.100", + "rollForward": "latestMajor" + }, + "msbuild-sdks": { + "Microsoft.Build.Traversal": "4.1.0" + } +} 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 new file mode 100644 index 000000000..8baea16b9 --- /dev/null +++ b/kubernetes-client.ruleset @@ -0,0 +1,303 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kubernetes-client.sln b/kubernetes-client.sln deleted file mode 100644 index 5c467acaf..000000000 --- a/kubernetes-client.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26430.16 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "tests", "tests\tests.csproj", "{F578EB59-8E44-4652-AF8D-03F03E8A8B37}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KubernetesClient", "src\KubernetesClient.csproj", "{CDDE69B1-A259-4DE3-8439-3AAD789B8F32}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F578EB59-8E44-4652-AF8D-03F03E8A8B37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F578EB59-8E44-4652-AF8D-03F03E8A8B37}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F578EB59-8E44-4652-AF8D-03F03E8A8B37}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F578EB59-8E44-4652-AF8D-03F03E8A8B37}.Release|Any CPU.Build.0 = Release|Any CPU - {CDDE69B1-A259-4DE3-8439-3AAD789B8F32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CDDE69B1-A259-4DE3-8439-3AAD789B8F32}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CDDE69B1-A259-4DE3-8439-3AAD789B8F32}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CDDE69B1-A259-4DE3-8439-3AAD789B8F32}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - 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/nuget.config b/nuget.config new file mode 100644 index 000000000..972f9afee --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/CertUtils.cs b/src/CertUtils.cs deleted file mode 100644 index a98e62b8a..000000000 --- a/src/CertUtils.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System; -using System.IO; -using System.Security.Cryptography.X509Certificates; -using System.Text; -using k8s.Exceptions; -using Org.BouncyCastle.Crypto; -using Org.BouncyCastle.Crypto.Parameters; -using Org.BouncyCastle.OpenSsl; -using Org.BouncyCastle.Pkcs; -using Org.BouncyCastle.Security; -using Org.BouncyCastle.X509; - -namespace k8s -{ - public static class CertUtils - { - /// - /// Load pem encoded cert file - /// - /// Path to pem encoded cert file - /// x509 instance. - public static X509Certificate2 LoadPemFileCert(string file) - { - var certdata = File.ReadAllText(file) - .Replace("-----BEGIN CERTIFICATE-----", "") - .Replace("-----END CERTIFICATE-----", "") - .Replace("\r", "") - .Replace("\n", ""); - - return new X509Certificate2(Convert.FromBase64String(certdata)); - } - - /// - /// Generates pfx from client configuration - /// - /// Kuberentes Client Configuration - /// Generated Pfx Path - public static X509Certificate2 GeneratePfx(KubernetesClientConfiguration 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("certData 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)); - - 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 rsaKeyParams = (RsaPrivateCrtKeyParameters) obj; - - var store = new Pkcs12StoreBuilder().Build(); - store.SetKeyEntry("K8SKEY", new AsymmetricKeyEntry(rsaKeyParams), new[] {new X509CertificateEntry(cert)}); - - using (var pkcs = new MemoryStream()) - { - store.Save(pkcs, new char[0], new SecureRandom()); - return new X509Certificate2(pkcs.ToArray()); - } - } - } -} diff --git a/src/IKubernetes.WebSocket.cs b/src/IKubernetes.WebSocket.cs deleted file mode 100644 index cf6ff2e92..000000000 --- a/src/IKubernetes.WebSocket.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System.Collections.Generic; -using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial interface IKubernetes - { - /// - /// Executes a command in a pod. - /// - /// - /// name of the Pod - /// - /// - /// 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 - /// . - /// - /// - /// Redirect the standard input stream of the pod for this call. Defaults to - /// . - /// - /// - /// Redirect the standard output stream of the pod for this call. Defaults to - /// . - /// - /// - /// TTY if true indicates that a tty will be allocated for the exec call. - /// Defaults to . - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A which can be used to communicate with the process running in the pod. - /// - Task WebSocketNamespacedPodExecAsync(string name, string @namespace = "default", string command = "/bin/bash", string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// Start port forwarding one or more ports of a pod. - /// - /// - /// The name of the Pod - /// - /// - /// The object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task WebSocketNamespacedPodPortForwardAsync(string name, string @namespace, IEnumerable ports, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to attach of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - Task WebSocketNamespacedPodAttachAsync(string name, string @namespace, string container = default(string), bool stderr = true, bool stdin = false, bool stdout = true, bool tty = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/src/IntstrIntOrString.cs b/src/IntstrIntOrString.cs deleted file mode 100644 index 6f634f1d0..000000000 --- a/src/IntstrIntOrString.cs +++ /dev/null @@ -1,74 +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); - } - } - - [JsonConverter(typeof(IntOrStringConverter))] - public partial class IntstrIntOrString - { - public static implicit operator int(IntstrIntOrString v) - { - return int.Parse(v.Value); - } - - 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() != this.GetType()) return false; - return Equals((IntstrIntOrString) obj); - } - - public override int GetHashCode() - { - return (Value != null ? Value.GetHashCode() : 0); - } - } -} diff --git a/src/KubeConfigModels/Cluster.cs b/src/KubeConfigModels/Cluster.cs deleted file mode 100644 index 9cd6d565e..000000000 --- a/src/KubeConfigModels/Cluster.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using YamlDotNet.Serialization; - - public class Cluster - { - [YamlMember(Alias = "cluster")] - public ClusterEndpoint ClusterEndpoint { get; set; } - - [YamlMember(Alias = "name")] - public string Name { get; set; } - } -} diff --git a/src/KubeConfigModels/ClusterEndpoint.cs b/src/KubeConfigModels/ClusterEndpoint.cs deleted file mode 100644 index 7bc60ba16..000000000 --- a/src/KubeConfigModels/ClusterEndpoint.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using YamlDotNet.Serialization; - - public class ClusterEndpoint - { - [YamlMember(Alias = "certificate-authority")] - public string CertificateAuthority {get; set; } - - [YamlMember(Alias = "certificate-authority-data")] - public string CertificateAuthorityData { get; set; } - - [YamlMember(Alias = "server")] - public string Server { get; set; } - - [YamlMember(Alias = "insecure-skip-tls-verify")] - public bool SkipTlsVerify { get; set; } - } -} diff --git a/src/KubeConfigModels/Context.cs b/src/KubeConfigModels/Context.cs deleted file mode 100644 index d921f2b72..000000000 --- a/src/KubeConfigModels/Context.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using YamlDotNet.Serialization; - - public class Context - { - [YamlMember(Alias = "context")] - public ContextDetails ContextDetails { get; set; } - - [YamlMember(Alias = "name")] - public string Name { get; set; } - - [YamlMember(Alias = "namespace")] - public string Namespace { get; set; } - } -} diff --git a/src/KubeConfigModels/ContextDetails.cs b/src/KubeConfigModels/ContextDetails.cs deleted file mode 100644 index 291f587c3..000000000 --- a/src/KubeConfigModels/ContextDetails.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using YamlDotNet.RepresentationModel; - using YamlDotNet.Serialization; - - public class ContextDetails - { - [YamlMember(Alias = "cluster")] - public string Cluster { get; set; } - - [YamlMember(Alias = "user")] - public string User { get; set; } - - [YamlMember(Alias = "namespace")] - public string Namespace { get; set; } - } -} diff --git a/src/KubeConfigModels/K8SConfiguration.cs b/src/KubeConfigModels/K8SConfiguration.cs deleted file mode 100644 index 7d6184f96..000000000 --- a/src/KubeConfigModels/K8SConfiguration.cs +++ /dev/null @@ -1,32 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using System.Collections.Generic; - using YamlDotNet.Serialization; - - /// - /// kubeconfig configuration model - /// - public class K8SConfiguration - { - [YamlMember(Alias = "preferences")] - public IDictionary Preferences{ get; set; } - - [YamlMember(Alias = "apiVersion")] - public string ApiVersion { get; set; } - - [YamlMember(Alias = "kind")] - public string Kind { get; set; } - - [YamlMember(Alias = "current-context")] - public string CurrentContext { get; set; } - - [YamlMember(Alias = "contexts")] - public IEnumerable Contexts { get; set; } = new Context[0]; - - [YamlMember(Alias = "clusters")] - public IEnumerable Clusters { get; set; } = new Cluster[0]; - - [YamlMember(Alias = "users")] - public IEnumerable Users { get; set; } = new User[0]; - } -} diff --git a/src/KubeConfigModels/User.cs b/src/KubeConfigModels/User.cs deleted file mode 100644 index 1c1290e05..000000000 --- a/src/KubeConfigModels/User.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using YamlDotNet.RepresentationModel; - using YamlDotNet.Serialization; - - public class User - { - [YamlMember(Alias = "user")] - public UserCredentials UserCredentials { get; set; } - - [YamlMember(Alias = "name")] - public string Name { get; set; } - } -} diff --git a/src/KubeConfigModels/UserCredentials.cs b/src/KubeConfigModels/UserCredentials.cs deleted file mode 100644 index 2300de31d..000000000 --- a/src/KubeConfigModels/UserCredentials.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace k8s.KubeConfigModels -{ - using System.Collections.Generic; - using YamlDotNet.RepresentationModel; - using YamlDotNet.Serialization; - - public class UserCredentials - { - [YamlMember(Alias = "client-certificate-data")] - public string ClientCertificateData { get; set; } - - [YamlMember(Alias = "client-certificate")] - public string ClientCertificate { get; set; } - - [YamlMember(Alias = "client-key-data")] - public string ClientKeyData { get; set; } - - [YamlMember(Alias = "client-key")] - public string ClientKey { get; set; } - - [YamlMember(Alias = "token")] - public string Token { get; set; } - - [YamlMember(Alias = "username")] - public string UserName { get; set; } - - [YamlMember(Alias = "password")] - public string Password { get; set; } - - [YamlMember(Alias = "auth-provider")] - public Dictionary AuthProvider { get; set; } - } -} diff --git a/src/Kubernetes.ConfigInit.cs b/src/Kubernetes.ConfigInit.cs deleted file mode 100644 index a95a6e3e0..000000000 --- a/src/Kubernetes.ConfigInit.cs +++ /dev/null @@ -1,163 +0,0 @@ -using System; -using System.Diagnostics.CodeAnalysis; -using System.Net.Http; -using System.Net.Security; -using System.Security.Cryptography.X509Certificates; -using k8s.Exceptions; -using k8s.Models; -using Microsoft.Rest; - -namespace k8s -{ - public partial class Kubernetes - { - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - /// - /// Optional. The delegating handlers to add to the http client pipeline. - /// - public Kubernetes(KubernetesClientConfiguration config, params DelegatingHandler[] handlers) : this(handlers) - { - if (string.IsNullOrWhiteSpace(config.Host)) - { - throw new KubeConfigException("Host url must be set"); - } - - try - { - BaseUri = new Uri(config.Host); - } - catch (UriFormatException e) - { - throw new KubeConfigException("Bad host url", e); - } - - CaCert = config.SslCaCert; - - if (BaseUri.Scheme == "https") - { - if (config.SkipTlsVerify) - { - HttpClientHandler.ServerCertificateCustomValidationCallback = - (sender, certificate, chain, sslPolicyErrors) => true; - } - else - { - if (CaCert == null) - { - throw new KubeConfigException("a CA must be set when SkipTlsVerify === false"); - } - - HttpClientHandler.ServerCertificateCustomValidationCallback = CertificateValidationCallBack; - } - } - - // set credentails for the kubernernet client - SetCredentials(config, HttpClientHandler); - } - - private X509Certificate2 CaCert { get; } - - partial void CustomInitialize() - { - AppendDelegatingHandler(); - DeserializationSettings.Converters.Add(new V1Status.V1StatusObjectViewConverter()); - } - - private void AppendDelegatingHandler() where T : DelegatingHandler, new() - { - var cur = FirstMessageHandler as DelegatingHandler; - - while (cur != null) - { - var next = cur.InnerHandler as DelegatingHandler; - - if (next == null) - { - // last one - // append watcher handler between to last handler - cur.InnerHandler = new T - { - InnerHandler = cur.InnerHandler - }; - break; - } - - cur = next; - } - } - - /// - /// Set credentials for the Client - /// - /// k8s client configuration - /// http client handler for the rest client - /// Task - private void SetCredentials(KubernetesClientConfiguration config, HttpClientHandler handler) - { - // set the Credentails for token based auth - if (!string.IsNullOrWhiteSpace(config.AccessToken)) - { - Credentials = new TokenCredentials(config.AccessToken); - } - else if (!string.IsNullOrWhiteSpace(config.Username) && !string.IsNullOrWhiteSpace(config.Password)) - { - Credentials = new BasicAuthenticationCredentials - { - UserName = config.Username, - Password = config.Password - }; - } - // othwerwise set handler for clinet cert based auth - else if ((!string.IsNullOrWhiteSpace(config.ClientCertificateData) || - !string.IsNullOrWhiteSpace(config.ClientCertificateFilePath)) && - (!string.IsNullOrWhiteSpace(config.ClientCertificateKeyData) || - !string.IsNullOrWhiteSpace(config.ClientKeyFilePath))) - { - var cert = CertUtils.GeneratePfx(config); - - handler.ClientCertificates.Add(cert); - } - } - - /// - /// SSl Cert Validation Callback - /// - /// sender - /// client certificate - /// chain - /// ssl policy errors - /// true if valid cert - [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", Justification = "Unused by design")] - private bool CertificateValidationCallBack( - object sender, - X509Certificate certificate, - X509Chain chain, - SslPolicyErrors sslPolicyErrors) - { - // If the certificate is a valid, signed certificate, return true. - if (sslPolicyErrors == SslPolicyErrors.None) - { - return true; - } - - // If there are errors in the certificate chain, look at each error to determine the cause. - if ((sslPolicyErrors & SslPolicyErrors.RemoteCertificateChainErrors) != 0) - { - chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck; - - // add all your extra certificate chain - chain.ChainPolicy.ExtraStore.Add(CaCert); - chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllowUnknownCertificateAuthority; - var isValid = chain.Build((X509Certificate2) certificate); - return isValid; - } - // In all other cases, return false. - return false; - } - } -} diff --git a/src/Kubernetes.WebSocket.cs b/src/Kubernetes.WebSocket.cs deleted file mode 100644 index 5149a1f91..000000000 --- a/src/Kubernetes.WebSocket.cs +++ /dev/null @@ -1,246 +0,0 @@ -using Microsoft.AspNetCore.WebUtilities; -using Microsoft.Rest; -using System; -using System.Collections.Generic; -using System.Net.Http; -using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial class Kubernetes - { - /// - /// Gets a function which returns a which will use to - /// create a new connection to the Kubernetes cluster. - /// - public Func CreateWebSocketBuilder { get; set; } = () => new WebSocketBuilder(); - - /// - public Task WebSocketNamespacedPodExecAsync(string name, string @namespace = "default", string command = "/bin/sh", string container = null, bool stderr = true, bool stdin = true, bool stdout = true, bool tty = true, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ArgumentNullException(nameof(name)); - } - - if (@namespace == null) - { - throw new ArgumentNullException(nameof(@namespace)); - } - - if (command == null) - { - throw new ArgumentNullException(nameof(command)); - } - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, nameof(WebSocketNamespacedPodExecAsync), tracingParameters); - } - - // Construct URL - var uriBuilder = new UriBuilder(BaseUri); - uriBuilder.Scheme = BaseUri.Scheme == "https" ? "wss" : "ws"; - - if (!uriBuilder.Path.EndsWith("/")) - { - uriBuilder.Path += "/"; - } - - uriBuilder.Path += $"api/v1/namespaces/{@namespace}/pods/{name}/exec"; - - - uriBuilder.Query = QueryHelpers.AddQueryString(string.Empty, new Dictionary - { - { "command", command}, - { "container", container}, - { "stderr", stderr ? "1": "0"}, - { "stdin", stdin ? "1": "0"}, - { "stdout", stdout ? "1": "0"}, - { "tty", tty ? "1": "0"} - }); - - return this.StreamConnectAsync(uriBuilder.Uri, _invocationId, customHeaders, cancellationToken); - } - - /// - public Task WebSocketNamespacedPodPortForwardAsync(string name, string @namespace, IEnumerable ports, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ArgumentNullException(nameof(name)); - } - - if (@namespace == null) - { - throw new ArgumentNullException(nameof(@namespace)); - } - - if (ports == null) - { - throw new ArgumentNullException(nameof(ports)); - } - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("name", name); - tracingParameters.Add("@namespace", @namespace); - tracingParameters.Add("ports", ports); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, nameof(WebSocketNamespacedPodPortForwardAsync), tracingParameters); - } - - // Construct URL - var uriBuilder = new UriBuilder(this.BaseUri); - uriBuilder.Scheme = this.BaseUri.Scheme == "https" ? "wss" : "ws"; - - if (!uriBuilder.Path.EndsWith("/")) - { - uriBuilder.Path += "/"; - } - - uriBuilder.Path += $"api/v1/namespaces/{@namespace}/pods/{name}/portforward"; - - foreach (var port in ports) - { - uriBuilder.Query += $"ports={port}&"; - } - - return StreamConnectAsync(uriBuilder.Uri, _invocationId, customHeaders, cancellationToken); - } - - /// - public Task WebSocketNamespacedPodAttachAsync(string name, string @namespace, string container = default(string), bool stderr = true, bool stdin = false, bool stdout = true, bool tty = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ArgumentNullException(nameof(name)); - } - - if (@namespace == null) - { - throw new ArgumentNullException(nameof(@namespace)); - } - - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, nameof(WebSocketNamespacedPodAttachAsync), tracingParameters); - } - - // Construct URL - var uriBuilder = new UriBuilder(this.BaseUri); - uriBuilder.Scheme = this.BaseUri.Scheme == "https" ? "wss" : "ws"; - - if (!uriBuilder.Path.EndsWith("/")) - { - uriBuilder.Path += "/"; - } - - uriBuilder.Path += $"api/v1/namespaces/{@namespace}/pods/{name}/portforward"; - - uriBuilder.Query = QueryHelpers.AddQueryString(string.Empty, new Dictionary - { - { "container", container}, - { "stderr", stderr ? "1": "0"}, - { "stdin", stdin ? "1": "0"}, - { "stdout", stdout ? "1": "0"}, - { "tty", tty ? "1": "0"} - }); - - return StreamConnectAsync(uriBuilder.Uri, _invocationId, customHeaders, cancellationToken); - } - - protected async Task StreamConnectAsync(Uri uri, string invocationId = null, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - bool _shouldTrace = ServiceClientTracing.IsEnabled; - - // Create WebSocket transport objects - WebSocketBuilder webSocketBuilder = this.CreateWebSocketBuilder(); - - // Set Headers - if (customHeaders != null) - { - foreach (var _header in customHeaders) - { - webSocketBuilder.SetRequestHeader(_header.Key, string.Join(" ", _header.Value)); - } - } - - // Set Credentials - foreach (var cert in this.HttpClientHandler.ClientCertificates) - { - webSocketBuilder.AddClientCertificate(cert); - } - - HttpRequestMessage message = new HttpRequestMessage(); - await this.Credentials.ProcessHttpRequestAsync(message, cancellationToken); - - foreach (var _header in message.Headers) - { - webSocketBuilder.SetRequestHeader(_header.Key, string.Join(" ", _header.Value)); - } - - // Send Request - cancellationToken.ThrowIfCancellationRequested(); - - WebSocket webSocket = null; - - try - { - webSocket = await webSocketBuilder.BuildAndConnectAsync(uri, CancellationToken.None).ConfigureAwait(false); - } - catch (Exception ex) - { - if (_shouldTrace) - { - ServiceClientTracing.Error(invocationId, ex); - } - - throw; - } - finally - { - if (_shouldTrace) - { - ServiceClientTracing.Exit(invocationId, null); - } - } - - return webSocket; - } - } -} 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.csproj b/src/KubernetesClient.csproj deleted file mode 100644 index b2b5cd780..000000000 --- a/src/KubernetesClient.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - 0.2.0-beta - The Kubernetes Project Authors - 2017 The Kubernetes Project Authors - Client library for the Kubernetes open source container orchestrator. - - https://www.apache.org/licenses/LICENSE-2.0 - https://github.com/kubernetes-client/csharp - kubernetes;docker;containers; - - netstandard1.4 - k8s - - - - - - - - - - - - - - - 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/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 new file mode 100644 index 000000000..912ea0fde --- /dev/null +++ b/src/KubernetesClient/Authentication/OidcTokenProvider.cs @@ -0,0 +1,116 @@ +using k8s.Exceptions; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Text; + +namespace k8s.Authentication +{ + public class OidcTokenProvider : ITokenProvider + { + 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; + _expiry = GetExpiryFromToken(); + } + + public async Task GetAuthenticationHeaderAsync(CancellationToken cancellationToken) + { + if (_idToken == null || DateTime.UtcNow.AddSeconds(30) > _expiry) + { + await RefreshToken().ConfigureAwait(false); + } + + return new AuthenticationHeaderValue("Bearer", _idToken); + } + + private DateTimeOffset GetExpiryFromToken() + { + try + { + 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 + { + // ignore to default + } + + return default; + } + + private static byte[] Base64UrlDecode(string input) + { + var output = input.Replace('-', '+').Replace('_', '/'); + switch (output.Length % 4) + { + case 2: output += "=="; break; + case 3: output += "="; break; + } + + return Convert.FromBase64String(output); + } + + private async Task RefreshToken() + { + try + { + 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(); + + 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)) + { + _refreshToken = refreshTokenElement.GetString(); + } + + if (jsonDocument.RootElement.TryGetProperty("expires_in", out var expiresInElement)) + { + var expiresIn = expiresInElement.GetInt32(); + _expiry = DateTimeOffset.UtcNow.AddSeconds(expiresIn); + } + } + catch (Exception e) + { + throw new KubernetesClientException($"Unable to refresh OIDC token. \n {e.Message}", 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 new file mode 100644 index 000000000..5d423aeb4 --- /dev/null +++ b/src/KubernetesClient/Authentication/TokenFileAuth.cs @@ -0,0 +1,46 @@ +using System.Net.Http.Headers; + +namespace k8s.Authentication +{ + public class TokenFileAuth : ITokenProvider + { + private string token; + internal string TokenFile { get; set; } + internal DateTime TokenExpiresAt { get; set; } + + 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 + // that its actual expiry is after the declared expiry here, + // which is as sufficiently true as the time of reading a token + // < 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 new file mode 100644 index 000000000..a6bc92fa0 --- /dev/null +++ b/src/KubernetesClient/ByteBuffer.cs @@ -0,0 +1,335 @@ +using System.Buffers; +using System.Diagnostics; + +namespace k8s +{ + // There may be already an async implementation that we can use: + // https://github.com/StephenCleary/AsyncEx/wiki/AsyncProducerConsumerQueue + // However, they focus on individual objects and may not be a good choice for use with fixed-with byte buffers + + /// + /// Represents a bounded buffer. A dedicated thread can send bytes to this buffer (the producer); while another thread can + /// read bytes from this buffer (the consumer). + /// + /// + /// This is a producer-consumer problem (or bounded-buffer problem), see https://en.wikipedia.org/wiki/Producer%E2%80%93consumer_problem + /// + public class ByteBuffer : IDisposable + { + private const int DefaultBufferSize = 4 * 1024; // 4 KB + private const int DefaultMaximumSize = 40 * 1024 * 1024; // 40 MB + + private readonly int maximumSize; + private readonly AutoResetEvent dataAvailable = new AutoResetEvent(false); + private readonly object lockObject = new object(); + + private byte[] buffer; + private int bytesWritten; + private int bytesRead; + + /// + /// Used by a writer to indicate the end of the file. When set, the reader will be notified that no + /// more data is available. + /// + private bool endOfFile; + private bool disposedValue; + + /// + /// Initializes a new instance of the class using the default buffer size and limit. + /// + public ByteBuffer() + : this(DefaultBufferSize, DefaultMaximumSize) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + /// The initial buffer size. + /// + /// + /// The maximum buffer size. + /// + public ByteBuffer(int bufferSize, int maximumSize) + { + this.maximumSize = maximumSize; + buffer = ArrayPool.Shared.Rent(bufferSize); + endOfFile = false; + } + + /// + /// Gets the current buffer size. + /// + public int Size + { + get { return buffer.Length; } + } + + /// + /// Gets the maximum allowed size of the buffer. + /// + public int MaximumSize + { + get { return maximumSize; } + } + + /// + /// Gets the offset from which the next byte will be read. Increased every time a caller reads data. + /// + public int ReadWaterMark { get; private set; } + + /// + /// Gets the offset to which the next byte will be written. Increased every time a caller writes data. + /// + public int WriteWaterMark { get; private set; } + + /// + /// Gets the amount of bytes availble for reading. + /// + public int AvailableReadableBytes + { + get + { + lock (lockObject) + { + if (ReadWaterMark == WriteWaterMark) + { + return 0; + } + else if (ReadWaterMark < WriteWaterMark) + { + return WriteWaterMark - ReadWaterMark; + } + else + { + return + + // Bytes available at the end of the array + buffer.Length - ReadWaterMark + + // Bytes available at the start of the array + + WriteWaterMark; + } + } + } + } + + /// + /// Gets the amount of bytes available for writing. + /// + public int AvailableWritableBytes + { + get + { + lock (lockObject) + { + if (WriteWaterMark > ReadWaterMark) + { + return + /* Available bytes at the end of the buffer */ + buffer.Length - WriteWaterMark + /* Available bytes at the start of the buffer */ + + ReadWaterMark; + } + else if (WriteWaterMark == ReadWaterMark) + { + return buffer.Length; + } + else + { + return ReadWaterMark - WriteWaterMark; + } + } + } + } + + /// + /// Writes bytes to the buffer. + /// + /// + /// The source byte array from which to read the bytes. + /// + /// + /// The offset of the first byte to copy. + /// + /// + /// The amount of bytes to copy. + /// + public void Write(byte[] data, int offset, int length) + { + lock (lockObject) + { + // Does the data fit? + // We must make sure that ReadWaterMark != WriteWaterMark; that would indicate 'all data has been read' instead + // instead of 'all data must be read' + if (AvailableWritableBytes <= length) + { + // Grow the buffer + Grow(buffer.Length + length - AvailableWritableBytes + 1); + } + + // Write the data; first the data that fits between the write watermark and the end of the buffer + var availableBeforeWrapping = buffer.Length - WriteWaterMark; + + Array.Copy(data, offset, buffer, WriteWaterMark, Math.Min(availableBeforeWrapping, length)); + WriteWaterMark += Math.Min(availableBeforeWrapping, length); + + if (length > availableBeforeWrapping) + { + Array.Copy(data, offset + availableBeforeWrapping, buffer, 0, + length - availableBeforeWrapping); + WriteWaterMark = length - availableBeforeWrapping; + } + + bytesWritten += length; + Debug.Assert(bytesRead + AvailableReadableBytes == bytesWritten); + } + + dataAvailable.Set(); + } + + /// + /// Stops writing data to the buffer, indicating that the end of file has been reached. + /// + public void WriteEnd() + { + lock (lockObject) + { + endOfFile = true; + dataAvailable.Set(); + } + } + + /// + /// Reads bytes from the buffer. + /// + /// + /// The byte array into which to read the data. + /// + /// + /// The offset at which to start writing the bytes. + /// + /// + /// The amount of bytes to read. + /// + /// + /// The total number of bytes read. + /// + public int Read(byte[] data, int offset, int count) + { + while (AvailableReadableBytes == 0 && !endOfFile) + { + dataAvailable.WaitOne(); + } + + var toRead = 0; + + lock (lockObject) + { + // Signal the end of file to the caller. + if (AvailableReadableBytes == 0 && endOfFile) + { + return 0; + } + + toRead = Math.Min(AvailableReadableBytes, count); + + var availableBeforeWrapping = buffer.Length - ReadWaterMark; + + Array.Copy(buffer, ReadWaterMark, data, offset, Math.Min(availableBeforeWrapping, toRead)); + ReadWaterMark += Math.Min(availableBeforeWrapping, toRead); + + if (toRead > availableBeforeWrapping) + { + Array.Copy(buffer, 0, data, offset + availableBeforeWrapping, + toRead - availableBeforeWrapping); + ReadWaterMark = toRead - availableBeforeWrapping; + } + + bytesRead += toRead; + Debug.Assert(bytesRead + AvailableReadableBytes == bytesWritten); + } + + return toRead; + } + + /// + /// The event which is raised when the buffer is resized. + /// + public event EventHandler OnResize; + + /// + /// Increases the buffer size. Any call to this method must be protected with a lock. + /// + /// + /// The new buffer size. + /// + private void Grow(int size) + { + if (size > maximumSize) + { + throw new OutOfMemoryException(); + } + + var newBuffer = ArrayPool.Shared.Rent(size); + + if (WriteWaterMark < ReadWaterMark) + { + // Copy the data at the start + Array.Copy(buffer, 0, newBuffer, 0, WriteWaterMark); + + var trailingDataLength = buffer.Length - ReadWaterMark; + Array.Copy( + buffer, + ReadWaterMark, + newBuffer, + newBuffer.Length - trailingDataLength, + trailingDataLength); + + ReadWaterMark += newBuffer.Length - buffer.Length; + } + else + { + // ... [Read WM] ... [Write WM] ... [newly available space] + Array.Copy(buffer, 0, newBuffer, 0, buffer.Length); + } + + ArrayPool.Shared.Return(buffer); + buffer = newBuffer; + + Debug.Assert(bytesRead + AvailableReadableBytes == bytesWritten); + OnResize?.Invoke(this, EventArgs.Empty); + } + + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + ArrayPool.Shared.Return(buffer); + dataAvailable.Dispose(); + } + + // TODO: free unmanaged resources (unmanaged objects) and override finalizer + // TODO: set large fields to null + disposedValue = true; + } + } + + // // TODO: override finalizer only if 'Dispose(bool disposing)' has code to free unmanaged resources + // ~ByteBuffer() + // { + // // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method + // Dispose(disposing: false); + // } + + public void Dispose() + { + // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method + Dispose(true); + GC.SuppressFinalize(this); + } + } +} diff --git a/src/KubernetesClient/CertUtils.cs b/src/KubernetesClient/CertUtils.cs new file mode 100644 index 000000000..7a398d7e8 --- /dev/null +++ b/src/KubernetesClient/CertUtils.cs @@ -0,0 +1,126 @@ +using k8s.Exceptions; +using System.Runtime.InteropServices; +using System.Security.Cryptography.X509Certificates; +using System.Text; + +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)) + { + certCollection.ImportFromPem(new StreamReader(stream).ReadToEnd()); + } + + 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)); + } + + string keyData = null; + string certData = null; + + if (!string.IsNullOrWhiteSpace(config.ClientCertificateKeyData)) + { + keyData = Encoding.UTF8.GetString(Convert.FromBase64String(config.ClientCertificateKeyData)); + } + + if (!string.IsNullOrWhiteSpace(config.ClientKeyFilePath)) + { + keyData = File.ReadAllText(config.ClientKeyFilePath); + } + + if (keyData == null) + { + throw new KubeConfigException("keyData is empty"); + } + + if (!string.IsNullOrWhiteSpace(config.ClientCertificateData)) + { + certData = Encoding.UTF8.GetString(Convert.FromBase64String(config.ClientCertificateData)); + } + + if (!string.IsNullOrWhiteSpace(config.ClientCertificateFilePath)) + { + certData = File.ReadAllText(config.ClientCertificateFilePath); + } + + if (certData == null) + { + throw new KubeConfigException("certData is empty"); + } + + + var cert = X509Certificate2.CreateFromPem(certData, keyData); + + // see https://github.com/kubernetes-client/csharp/issues/737 + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + // 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) + { +#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 + { +#if NET9_0_OR_GREATER + cert = X509CertificateLoader.LoadPkcs12(cert.Export(X509ContentType.Pkcs12), nullPassword); +#else + cert = new X509Certificate2(cert.Export(X509ContentType.Pkcs12), nullPassword); +#endif + } + } + + return cert; + } + + /// + /// 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/ChannelIndex.cs b/src/KubernetesClient/ChannelIndex.cs new file mode 100644 index 000000000..ca521a86d --- /dev/null +++ b/src/KubernetesClient/ChannelIndex.cs @@ -0,0 +1,38 @@ +namespace k8s +{ + /// + /// These values identify the various channels which you can use when interacting with a process running in a container in a Kubernetes + /// pod. + /// + /// + [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1028:Enum Storage should be Int32", Justification = "byte only")] + public enum ChannelIndex : byte + { + /// + /// The standard input channel. Use this channel to send input to a process running in a container inside a Kubernetes pod. + /// + StdIn, + + /// + /// The standard output channel. Use this channel to read standard output generated by a process running in a container in a Kubernetes pod. + /// + StdOut, + + /// + /// The standard error channel. Use this channel to read the error output generated by a process running in a container in a Kubernetes pod. + /// + StdErr, + + /// + /// The error channel. This channel is used by Kubernetes to send you error messages, including the exit code of the process. + /// + Error, + + /// + /// The resize channel. Use this channel to resize the terminal. You need to send a JSON-formatted object over this channel, which + /// has a Width and Height property. + /// + /// + Resize, + } +} 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/Exceptions/KubeConfigException.cs b/src/KubernetesClient/Exceptions/KubeConfigException.cs similarity index 80% rename from src/Exceptions/KubeConfigException.cs rename to src/KubernetesClient/Exceptions/KubeConfigException.cs index aa8bbb720..da7b6538f 100644 --- a/src/Exceptions/KubeConfigException.cs +++ b/src/KubernetesClient/Exceptions/KubeConfigException.cs @@ -1,24 +1,22 @@ -namespace k8s.Exceptions -{ - using System; - - /// - /// The exception that is thrown when the kube config is invalid - /// - public class KubeConfigException : Exception - { - public KubeConfigException() - { - } - - public KubeConfigException(string message) - : base(message) - { - } - - public KubeConfigException(string message, Exception inner) - : base(message, inner) - { - } - } -} +namespace k8s.Exceptions +{ + /// + /// The exception that is thrown when the kube config is invalid + /// + public class KubeConfigException : Exception + { + public KubeConfigException() + { + } + + public KubeConfigException(string message) + : base(message) + { + } + + public KubeConfigException(string message, Exception inner) + : base(message, inner) + { + } + } +} diff --git a/src/Exceptions/KubernetesClientException.cs b/src/KubernetesClient/Exceptions/KubernetesClientException.cs similarity index 81% rename from src/Exceptions/KubernetesClientException.cs rename to src/KubernetesClient/Exceptions/KubernetesClientException.cs index af7596e19..6f2fb49bb 100644 --- a/src/Exceptions/KubernetesClientException.cs +++ b/src/KubernetesClient/Exceptions/KubernetesClientException.cs @@ -1,24 +1,22 @@ -namespace k8s.Exceptions -{ - using System; - - /// - /// The exception that is thrown when there is a client exception - /// - public class KubernetesClientException : Exception - { - public KubernetesClientException() - { - } - - public KubernetesClientException(string message) - : base(message) - { - } - - public KubernetesClientException(string message, Exception inner) - : base(message, inner) - { - } - } -} +namespace k8s.Exceptions +{ + /// + /// The exception that is thrown when there is a client exception + /// + public class KubernetesClientException : Exception + { + public KubernetesClientException() + { + } + + public KubernetesClientException(string message) + : base(message) + { + } + + public KubernetesClientException(string message, Exception inner) + : base(message, inner) + { + } + } +} diff --git a/src/KubernetesClient/ExecAsyncCallback.cs b/src/KubernetesClient/ExecAsyncCallback.cs new file mode 100644 index 000000000..461f980f2 --- /dev/null +++ b/src/KubernetesClient/ExecAsyncCallback.cs @@ -0,0 +1,21 @@ +namespace k8s +{ + /// + /// A prototype for a callback which asynchronously processes the standard input, standard output and standard error of a command executing in + /// a container. + /// + /// + /// The standard input stream of the process. + /// + /// + /// The standard output stream of the process. + /// + /// + /// The standard error stream of the remote process. + /// + /// + /// A which represents the asynchronous processing of the process input, output and error streams. This task + /// should complete once you're done interacting with the remote process. + /// + public delegate Task ExecAsyncCallback(Stream stdIn, Stream stdOut, Stream stdErr); +} diff --git a/src/KubernetesClient/Extensions.cs b/src/KubernetesClient/Extensions.cs new file mode 100644 index 000000000..270a74724 --- /dev/null +++ b/src/KubernetesClient/Extensions.cs @@ -0,0 +1,39 @@ +using System.Reflection; +using System.Text.RegularExpressions; + +namespace k8s +{ + public static class Extensions + { + public static KubernetesEntityAttribute GetKubernetesTypeMetadata(this T obj) + where T : IKubernetesObject + => + obj.GetType().GetKubernetesTypeMetadata(); + public static KubernetesEntityAttribute GetKubernetesTypeMetadata(this Type currentType) + { + var attr = currentType.GetCustomAttribute(); + if (attr == null) + { + throw new InvalidOperationException($"Custom resource must have {nameof(KubernetesEntityAttribute)} applied to it"); + } + + return attr; + } + + public static T Initialize(this T obj) + where T : IKubernetesObject + { + var metadata = obj.GetKubernetesTypeMetadata(); + obj.ApiVersion = !string.IsNullOrEmpty(metadata.Group) ? $"{metadata.Group}/{metadata.ApiVersion}" : metadata.ApiVersion; + obj.Kind = metadata.Kind ?? obj.GetType().Name; + if (obj is IMetadata withMetadata && withMetadata.Metadata == null) + { + withMetadata.Metadata = new V1ObjectMeta(); + } + + return obj; + } + + internal static bool IsValidKubernetesName(this string value) => !Regex.IsMatch(value, "^[a-z0-9-]+$"); + } +} 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/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 new file mode 100644 index 000000000..a250aad22 --- /dev/null +++ b/src/KubernetesClient/GenericClient.cs @@ -0,0 +1,157 @@ +namespace k8s +{ + public class GenericClient : IDisposable + { + private readonly IKubernetes kubernetes; + 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) + : this(new Kubernetes(config), group, 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, 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.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.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.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.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.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.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.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.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() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + protected virtual void Dispose(bool disposing) + { + 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/IKubernetes.Exec.cs b/src/KubernetesClient/IKubernetes.Exec.cs new file mode 100644 index 000000000..b9197a897 --- /dev/null +++ b/src/KubernetesClient/IKubernetes.Exec.cs @@ -0,0 +1,35 @@ +namespace k8s +{ + public partial interface IKubernetes + { + /// + /// Executes a command in a container in a pod. + /// + /// + /// The name of the pod which contains the container in which to execute the command. + /// + /// + /// The namespace of the container. + /// + /// + /// The container in which to run the command. + /// + /// + /// The command to execute. + /// + /// + /// if allocate a pseudo-TTY + /// + /// + /// A callback which processes the standard input, standard output and standard error. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + /// + /// A which represents the asynchronous operation. + /// + Task NamespacedPodExecAsync(string name, string @namespace, string container, IEnumerable command, + bool tty, ExecAsyncCallback action, CancellationToken cancellationToken); + } +} diff --git a/src/KubernetesClient/IKubernetes.WebSocket.cs b/src/KubernetesClient/IKubernetes.WebSocket.cs new file mode 100644 index 000000000..ed6657332 --- /dev/null +++ b/src/KubernetesClient/IKubernetes.WebSocket.cs @@ -0,0 +1,248 @@ +using System.Net.WebSockets; + +namespace k8s +{ + public partial interface IKubernetes + { + /// + /// Executes a command in a pod. + /// + /// + /// name of the Pod + /// + /// + /// 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 + /// . + /// + /// + /// Redirect the standard input stream of the pod for this call. Defaults to + /// . + /// + /// + /// Redirect the standard output stream of the pod for this call. Defaults to + /// . + /// + /// + /// TTY if true indicates that a tty will be allocated for the exec call. + /// Defaults to . + /// + /// + /// The Kubernetes-specific WebSocket sub protocol to use. See for a list of available + /// protocols. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A which can be used to communicate with the process running in the pod. + /// + 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 webSocketSubProtocol = null, Dictionary> customHeaders = null, + CancellationToken cancellationToken = default); + + /// + /// Executes a command in a pod. + /// + /// + /// name of the Pod + /// + /// + /// 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 + /// . + /// + /// + /// Redirect the standard input stream of the pod for this call. Defaults to + /// . + /// + /// + /// Redirect the standard output stream of the pod for this call. Defaults to + /// . + /// + /// + /// TTY if true indicates that a tty will be allocated for the exec call. + /// Defaults to . + /// + /// + /// The Kubernetes-specific WebSocket sub protocol to use. See for a list of available + /// protocols. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A which can be used to communicate with the process running in the pod. + /// + 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 webSocketSubProtocol = null, + Dictionary> customHeaders = null, + CancellationToken cancellationToken = default); + + /// + /// Executes a command in a pod. + /// + /// + /// name of the Pod + /// + /// + /// 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 + /// . + /// + /// + /// Redirect the standard input stream of the pod for this call. Defaults to + /// . + /// + /// + /// Redirect the standard output stream of the pod for this call. Defaults to + /// . + /// + /// + /// TTY if true indicates that a tty will be allocated for the exec call. + /// Defaults to . + /// + /// + /// The Kubernetes-specific WebSocket sub protocol to use. See for a list of available + /// protocols. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A which can be used to communicate with the process running in the pod. + /// + 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 webSocketSubProtocol = WebSocketProtocol.V4BinaryWebsocketProtocol, + Dictionary> customHeaders = null, + CancellationToken cancellationToken = default); + + /// + /// Start port forwarding one or more ports of a pod. + /// + /// + /// The name of the Pod + /// + /// + /// The object name and auth scope, such as for teams and projects + /// + /// + /// List of ports to forward. + /// + /// + /// The Kubernetes-specific WebSocket sub protocol to use. See for a list of available + /// protocols. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// A which can be used to communicate with the process running in the pod. + /// + Task WebSocketNamespacedPodPortForwardAsync(string name, string @namespace, IEnumerable ports, + string webSocketSubProtocol = null, Dictionary> customHeaders = null, + CancellationToken cancellationToken = default); + + + /// + /// connect GET requests to attach of Pod + /// + /// + /// name of the Pod + /// + /// + /// 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 Kubernetes-specific WebSocket sub protocol to use. See for a list of available + /// protocols. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// A response object containing the response body and response headers. + Task WebSocketNamespacedPodAttachAsync(string name, string @namespace, + string container = default, bool stderr = true, bool stdin = false, bool stdout = true, + bool tty = false, string webSocketSubProtocol = null, Dictionary> customHeaders = null, + CancellationToken cancellationToken = default); + } +} 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 new file mode 100644 index 000000000..5fe05b543 --- /dev/null +++ b/src/KubernetesClient/IKubernetesObject.cs @@ -0,0 +1,40 @@ +namespace k8s +{ + /// + /// Represents a generic Kubernetes object. + /// + /// + /// You can use the if you receive JSON from a Kubernetes API server but + /// are unsure which object the API server is about to return. You can parse the JSON as a + /// and use the and properties to get basic metadata about any Kubernetes object. + /// You can then + /// + public interface IKubernetesObject + { + /// + /// Gets or 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/api-conventions.md#resources + /// + [JsonPropertyName("apiVersion")] + string ApiVersion { get; set; } + + /// + /// Gets or sets kind is a string value representing the REST resource + /// this object represents. Servers may infer this from the endpoint + /// the client submits requests to. Cannot be updated. In CamelCase. + /// More info: + /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + /// + [JsonPropertyName("kind")] + string Kind { get; set; } + } + + /// Represents a generic Kubernetes object that has an API version, a kind, and metadata. + /// type of metadata + public interface IKubernetesObject : IKubernetesObject, IMetadata + { + } +} diff --git a/src/KubernetesClient/IStreamDemuxer.cs b/src/KubernetesClient/IStreamDemuxer.cs new file mode 100644 index 000000000..ce46d40f8 --- /dev/null +++ b/src/KubernetesClient/IStreamDemuxer.cs @@ -0,0 +1,98 @@ +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. + /// + /// + /// 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 + { + /// + /// Starts reading the data sent by the server. + /// + void Start(); + + /// + /// Gets a which allows you to read to and/or write from a remote channel. + /// + /// + /// The index of the channel from which to read. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// A which allows you to read/write to the requested channels. + /// + Stream GetStream(ChannelIndex? inputIndex, ChannelIndex? outputIndex); + + /// + /// Gets a which allows you to read to and/or write from a remote channel. + /// + /// + /// The index of the channel from which to read. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// A which allows you to read/write to the requested channels. + /// + Stream GetStream(byte? inputIndex, byte? outputIndex); + + /// + /// Directly writes data to a channel. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// The buffer from which to read data. + /// + /// + /// The offset at which to start reading. + /// + /// + /// The number of bytes to read. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + /// + /// A which represents the asynchronous operation. + /// + Task Write(ChannelIndex index, byte[] buffer, int offset, int count, + CancellationToken cancellationToken = default); + + /// + /// Directly writes data to a channel. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// The buffer from which to read data. + /// + /// + /// The offset at which to start reading. + /// + /// + /// The number of bytes to read. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + /// + /// A which represents the asynchronous operation. + /// + Task Write(byte index, byte[] buffer, int offset, int count, + CancellationToken cancellationToken = default); + } +} diff --git a/src/KubernetesClient/KubeConfigModels/AuthProvider.cs b/src/KubernetesClient/KubeConfigModels/AuthProvider.cs new file mode 100644 index 000000000..4ec5d94e0 --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/AuthProvider.cs @@ -0,0 +1,22 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Contains information that describes identity information. This is use to tell the kubernetes cluster who you are. + /// + 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/KubeConfigModels/Cluster.cs b/src/KubernetesClient/KubeConfigModels/Cluster.cs new file mode 100644 index 000000000..4d0a81572 --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/Cluster.cs @@ -0,0 +1,22 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Relates nicknames to cluster information. + /// + 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/KubeConfigModels/ClusterEndpoint.cs b/src/KubernetesClient/KubeConfigModels/ClusterEndpoint.cs new file mode 100644 index 000000000..cdd791b4a --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/ClusterEndpoint.cs @@ -0,0 +1,47 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Contains information about how to communicate with a kubernetes cluster + /// + 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; } + + /// + /// Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields. + /// + [YamlMember(Alias = "extensions")] + public IEnumerable Extensions { get; set; } + } +} diff --git a/src/KubernetesClient/KubeConfigModels/Context.cs b/src/KubernetesClient/KubeConfigModels/Context.cs new file mode 100644 index 000000000..931a9fa42 --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/Context.cs @@ -0,0 +1,33 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Relates nicknames to context information. + /// + 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; } + + /// + /// Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields. + /// + [YamlMember(Alias = "extensions")] + public IEnumerable Extensions { get; set; } + + + [Obsolete("This property is not set by the YAML config. Use ContextDetails.Namespace instead.")] + [YamlMember(Alias = "namespace")] + public string Namespace { get; set; } + } +} diff --git a/src/KubernetesClient/KubeConfigModels/ContextDetails.cs b/src/KubernetesClient/KubeConfigModels/ContextDetails.cs new file mode 100644 index 000000000..4bae5c3fd --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/ContextDetails.cs @@ -0,0 +1,35 @@ +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) + /// + 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; } + + /// + /// Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields. + /// + [YamlMember(Alias = "extensions")] + public IEnumerable Extensions { get; set; } + } +} diff --git a/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs b/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs new file mode 100644 index 000000000..6654ba3bd --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/ExecCredentialResponse.cs @@ -0,0 +1,28 @@ +namespace k8s.KubeConfigModels +{ + public class ExecCredentialResponse + { + 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; } + [JsonPropertyName("kind")] + public string Kind { get; set; } + [JsonPropertyName("status")] + public ExecStatus Status { get; set; } + } +} diff --git a/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs b/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs new file mode 100644 index 000000000..c3be35f04 --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/ExternalExecution.cs @@ -0,0 +1,41 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + 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/KubeConfigModels/K8SConfiguration.cs b/src/KubernetesClient/KubeConfigModels/K8SConfiguration.cs new file mode 100644 index 000000000..5308c209e --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/K8SConfiguration.cs @@ -0,0 +1,64 @@ +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. + /// + 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 IEnumerable Contexts { get; set; } = new Context[0]; + + /// + /// Gets or sets a map of referencable names to cluster configs. + /// + [YamlMember(Alias = "clusters")] + public IEnumerable Clusters { get; set; } = new Cluster[0]; + + /// + /// Gets or sets a map of referencable names to user configs + /// + [YamlMember(Alias = "users")] + public IEnumerable Users { get; set; } = new User[0]; + + /// + /// Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields. + /// + [YamlMember(Alias = "extensions")] + public IEnumerable 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/KubeConfigModels/NamedExtension.cs b/src/KubernetesClient/KubeConfigModels/NamedExtension.cs new file mode 100644 index 000000000..676197975 --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/NamedExtension.cs @@ -0,0 +1,22 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// relates nicknames to extension information + /// + public class NamedExtension + { + /// + /// Gets or sets the nickname for this extension. + /// + [YamlMember(Alias = "name")] + public string Name { get; set; } + + /// + /// Get or sets the extension information. + /// + [YamlMember(Alias = "extension")] + public dynamic Extension { get; set; } + } +} diff --git a/src/KubernetesClient/KubeConfigModels/User.cs b/src/KubernetesClient/KubeConfigModels/User.cs new file mode 100644 index 000000000..b92d7c564 --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/User.cs @@ -0,0 +1,22 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Relates nicknames to auth information. + /// + 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/KubeConfigModels/UserCredentials.cs b/src/KubernetesClient/KubeConfigModels/UserCredentials.cs new file mode 100644 index 000000000..b5dfc8a5a --- /dev/null +++ b/src/KubernetesClient/KubeConfigModels/UserCredentials.cs @@ -0,0 +1,88 @@ +using YamlDotNet.Serialization; + +namespace k8s.KubeConfigModels +{ + /// + /// Contains information that describes identity information. This is use to tell the kubernetes cluster who you are. + /// + 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 additional information. This is useful for extenders so that reads and writes don't clobber unknown fields. + /// + [YamlMember(Alias = "extensions")] + public IEnumerable Extensions { 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/Kubernetes.ConfigInit.cs b/src/KubernetesClient/Kubernetes.ConfigInit.cs new file mode 100644 index 000000000..e87e4e96a --- /dev/null +++ b/src/KubernetesClient/Kubernetes.ConfigInit.cs @@ -0,0 +1,273 @@ +using k8s.Authentication; +using k8s.Exceptions; +using System.Net.Http; +using System.Net.Security; +using System.Security.Cryptography.X509Certificates; + +namespace k8s +{ + public partial class Kubernetes + { + private readonly JsonSerializerOptions jsonSerializerOptions; + + /// + /// Initializes a new instance of the class. + /// + /// + /// The kube config to use. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + public Kubernetes(KubernetesClientConfiguration config, params DelegatingHandler[] handlers) + { + Initialize(); + ValidateConfig(config); + + 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) + { + if (config == null) + { + throw new KubeConfigException("KubeConfig must be provided"); + } + + if (string.IsNullOrWhiteSpace(config.Host)) + { + throw new KubeConfigException("Host url must be set"); + } + + try + { + BaseUri = new Uri(config.Host); + } + catch (UriFormatException e) + { + throw new KubeConfigException("Bad host url", e); + } + } + + private void InitializeFromConfig(KubernetesClientConfiguration config) + { + if (BaseUri.Scheme == "https") + { + 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 NET5_0_OR_GREATER + HttpClientHandler.SslOptions.RemoteCertificateValidationCallback = +#else + HttpClientHandler.ServerCertificateCustomValidationCallback = +#endif + (sender, certificate, chain, sslPolicyErrors) => + { + return CertificateValidationCallBack(sender, CaCerts, certificate, chain, + sslPolicyErrors); + }; + } + } + } + + // set credentails for the kubernetes client + SetCredentials(config); + + 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 X509Certificate2Collection CaCerts { get; } + + private X509Certificate2 ClientCert { get; set; } + + private bool SkipTlsVerify { get; } + + 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 + // of what requests have failed. it considers everything outside 2xx to be failed, including 1xx (e.g. 101 Switching Protocols) and + // 3xx. in particular, this prevents upgraded connections and certain generic/custom requests from working. + private void CreateHttpClient(DelegatingHandler[] handlers, KubernetesClientConfiguration config) + { +#if NET5_0_OR_GREATER + FirstMessageHandler = HttpClientHandler = new SocketsHttpHandler + { + KeepAlivePingPolicy = HttpKeepAlivePingPolicy.WithActiveRequests, + KeepAlivePingDelay = TimeSpan.FromMinutes(3), + KeepAlivePingTimeout = TimeSpan.FromSeconds(30), + EnableMultipleHttp2Connections = true, + }; + + HttpClientHandler.SslOptions.ClientCertificates = new X509Certificate2Collection(); +#else + FirstMessageHandler = HttpClientHandler = new HttpClientHandler(); +#endif + config.FirstMessageHandlerSetup?.Invoke(HttpClientHandler); + + if (handlers != null) + { + for (int i = handlers.Length - 1; i >= 0; i--) + { + DelegatingHandler handler = handlers[i]; + while (handler.InnerHandler is DelegatingHandler d) + { + handler = d; + } + + handler.InnerHandler = FirstMessageHandler; + FirstMessageHandler = handlers[i]; + } + } + + HttpClient = new HttpClient(FirstMessageHandler, false) + { + Timeout = Timeout.InfiniteTimeSpan, + }; + } + + /// + /// Set credentials for the Client + /// + /// k8s client configuration + private void SetCredentials(KubernetesClientConfiguration config) => Credentials = CreateCredentials(config); + + /// + /// SSl Cert Validation Callback + /// + /// sender + /// client ca + /// client certificate + /// chain + /// ssl policy errors + /// true if valid cert + public static bool CertificateValidationCallBack( + object sender, + X509Certificate2Collection caCerts, + X509Certificate certificate, + X509Chain chain, + SslPolicyErrors sslPolicyErrors) + { + if (caCerts == null) + { + throw new ArgumentNullException(nameof(caCerts)); + } + + if (chain == null) + { + throw new ArgumentNullException(nameof(chain)); + } + + // If the certificate is a valid, signed certificate, return true. + if (sslPolicyErrors == SslPolicyErrors.None) + { + return true; + } + + // If there are errors in the certificate chain, look at each error to determine the cause. + if ((sslPolicyErrors & SslPolicyErrors.RemoteCertificateChainErrors) != 0) + { + chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck; + +#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; + + // Make sure that one of our trusted certs exists in the chain provided by the server. + // + foreach (var cert in caCerts) + { + if (chain.Build(cert)) + { + isTrusted = true; + break; + } + } + + return isValid && isTrusted; + } + + // In all other cases, return false. + return false; + } + + /// + /// Creates based on the given config, or returns null if no such credentials are needed. + /// + /// kubenetes config object + /// instance of + public static ServiceClientCredentials CreateCredentials(KubernetesClientConfiguration config) + { + if (config == null) + { + throw new ArgumentNullException(nameof(config)); + } + + if (config.TokenProvider != null) + { + return new TokenCredentials(config.TokenProvider); + } + else if (!string.IsNullOrEmpty(config.AccessToken)) + { + return new TokenCredentials(config.AccessToken); + } + else if (!string.IsNullOrEmpty(config.Username)) + { + return new BasicAuthenticationCredentials() { UserName = config.Username, Password = config.Password }; + } + + return null; + } + } +} diff --git a/src/KubernetesClient/Kubernetes.Exec.cs b/src/KubernetesClient/Kubernetes.Exec.cs new file mode 100644 index 000000000..53671aead --- /dev/null +++ b/src/KubernetesClient/Kubernetes.Exec.cs @@ -0,0 +1,88 @@ +namespace k8s +{ + public partial class Kubernetes + { + public async Task NamespacedPodExecAsync(string name, string @namespace, string container, + IEnumerable command, bool tty, ExecAsyncCallback action, CancellationToken cancellationToken) + { + // All other parameters are being validated by MuxedStreamNamespacedPodExecAsync + if (action == null) + { + throw new ArgumentNullException(nameof(action)); + } + + try + { + 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(); + + 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 status) + { + throw new KubernetesException(status, httpEx); + } + } + + /// + /// Determines the process' exit code based on a message. + /// + /// This will: + /// - return 0 if the process completed successfully + /// - return the exit code if the process completed with a non-zero exit code + /// - throw a in all other cases. + /// + /// + /// A object. + /// + /// + /// The process exit code. + /// + public static int GetExitCodeOrThrow(V1Status status) + { + if (status == null) + { + throw new ArgumentNullException(nameof(status)); + } + + if (status.Status == "Success") + { + return 0; + } + else if (status.Status == "Failure" && status.Reason == "NonZeroExitCode") + { + var exitCodeString = status.Details.Causes.FirstOrDefault(c => c.Reason == "ExitCode")?.Message; + + if (int.TryParse(exitCodeString, out var exitCode)) + { + return exitCode; + } + else + { + throw new KubernetesException(status); + } + } + else + { + throw new KubernetesException(status); + } + } + } +} diff --git a/src/KubernetesClient/Kubernetes.WebSocket.cs b/src/KubernetesClient/Kubernetes.WebSocket.cs new file mode 100644 index 000000000..aeca29708 --- /dev/null +++ b/src/KubernetesClient/Kubernetes.WebSocket.cs @@ -0,0 +1,348 @@ +using System.Globalization; +using System.Net; +using System.Net.Http; +using System.Net.WebSockets; +using System.Security.Cryptography.X509Certificates; +using System.Text; + +namespace k8s +{ + public partial class Kubernetes + { + /// + /// Gets a function which returns a which will use to + /// create a new connection to the Kubernetes cluster. + /// + public Func CreateWebSocketBuilder { get; set; } = () => new WebSocketBuilder(); + + /// + 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 webSocketSubProtocol = null, Dictionary> customHeaders = null, + CancellationToken cancellationToken = default) + { + return WebSocketNamespacedPodExecAsync(name, @namespace, new string[] { command }, container, stderr, stdin, + stdout, tty, webSocketSubProtocol, customHeaders, cancellationToken); + } + + /// + 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 webSocketSubProtocol = WebSocketProtocol.V4BinaryWebsocketProtocol, + Dictionary> customHeaders = null, + CancellationToken cancellationToken = default) + { + var webSocket = await WebSocketNamespacedPodExecAsync(name, @namespace, + command, container, tty: tty, cancellationToken: cancellationToken) + .ConfigureAwait(false); + var muxer = new StreamDemuxer(webSocket); + return muxer; + } + + /// + 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 webSocketSubProtocol = WebSocketProtocol.V4BinaryWebsocketProtocol, + Dictionary> customHeaders = null, + CancellationToken cancellationToken = default) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + if (@namespace == null) + { + throw new ArgumentNullException(nameof(@namespace)); + } + + if (command == null) + { + throw new ArgumentNullException(nameof(command)); + } + + if (!command.Any()) + { + throw new ArgumentOutOfRangeException(nameof(command)); + } + + var commandArray = command.ToArray(); + foreach (var c in commandArray) + { + if (c.Length > 0 && c[0] == 0xfeff) + { + throw new InvalidOperationException( + $"Detected an attempt to execute a command which starts with a Unicode byte order mark (BOM). This is probably incorrect. The command was {c}"); + } + } + + // Construct URL + var uriBuilder = new UriBuilder(BaseUri) + { + Scheme = BaseUri.Scheme == "https" ? "wss" : "ws", + }; + + if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) + { + uriBuilder.Path += "/"; + } + + uriBuilder.Path += $"api/v1/namespaces/{@namespace}/pods/{name}/exec"; + + var query = new StringBuilder(); + + foreach (var c in command) + { + Utilities.AddQueryParameter(query, "command", c); + } + + if (!string.IsNullOrEmpty(container)) + { + Utilities.AddQueryParameter(query, "container", container); + } + + query.Append("&stderr=") + .Append(stderr + ? '1' + : '0'); // the query string is guaranteed not to be empty here because it has a 'command' param + query.Append("&stdin=").Append(stdin ? '1' : '0'); + query.Append("&stdout=").Append(stdout ? '1' : '0'); + query.Append("&tty=").Append(tty ? '1' : '0'); + uriBuilder.Query = + query.ToString(1, query.Length - 1); // UriBuilder.Query doesn't like leading '?' chars, so trim it + + return StreamConnectAsync(uriBuilder.Uri, webSocketSubProtocol, customHeaders, + cancellationToken); + } + + /// + public Task WebSocketNamespacedPodPortForwardAsync(string name, string @namespace, + IEnumerable ports, string webSocketSubProtocol = null, + Dictionary> customHeaders = null, + CancellationToken cancellationToken = default) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + if (@namespace == null) + { + throw new ArgumentNullException(nameof(@namespace)); + } + + if (ports == null) + { + throw new ArgumentNullException(nameof(ports)); + } + + + // Construct URL + var uriBuilder = new UriBuilder(BaseUri) + { + Scheme = BaseUri.Scheme == "https" ? "wss" : "ws", + }; + + if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) + { + uriBuilder.Path += "/"; + } + + uriBuilder.Path += $"api/v1/namespaces/{@namespace}/pods/{name}/portforward"; + + var q = new StringBuilder(); + foreach (var port in ports) + { + if (q.Length != 0) + { + q.Append('&'); + } + + q.Append("ports=").Append(port.ToString(CultureInfo.InvariantCulture)); + } + + uriBuilder.Query = q.ToString(); + + 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 webSocketSubProtocol = null, Dictionary> customHeaders = null, + CancellationToken cancellationToken = default) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + if (@namespace == null) + { + throw new ArgumentNullException(nameof(@namespace)); + } + + // Construct URL + var uriBuilder = new UriBuilder(BaseUri) + { + Scheme = BaseUri.Scheme == "https" ? "wss" : "ws", + }; + + if (!uriBuilder.Path.EndsWith("/", StringComparison.InvariantCulture)) + { + uriBuilder.Path += "/"; + } + + uriBuilder.Path += $"api/v1/namespaces/{@namespace}/pods/{name}/attach"; + + var query = new StringBuilder(); + query.Append("?stderr=").Append(stderr ? '1' : '0'); + query.Append("&stdin=").Append(stdin ? '1' : '0'); + query.Append("&stdout=").Append(stdout ? '1' : '0'); + query.Append("&tty=").Append(tty ? '1' : '0'); + Utilities.AddQueryParameter(query, "container", container); + uriBuilder.Query = + query.ToString(1, query.Length - 1); // UriBuilder.Query doesn't like leading '?' chars, so trim it + + return StreamConnectAsync(uriBuilder.Uri, webSocketSubProtocol, customHeaders, + cancellationToken); + } + + 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)); + } + + // Create WebSocket transport objects + var webSocketBuilder = CreateWebSocketBuilder(); + + // Set Headers + if (customHeaders != null) + { + foreach (var header in customHeaders) + { + webSocketBuilder.SetRequestHeader(header.Key, string.Join(" ", header.Value)); + } + } + + // Set Credentials + 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); + } + } + + if (Credentials != null) + { + // Copy the default (credential-related) request headers from the HttpClient to the WebSocket + var message = new HttpRequestMessage(); + await Credentials.ProcessHttpRequestAsync(message, cancellationToken).ConfigureAwait(false); + + foreach (var header in message.Headers) + { + webSocketBuilder.SetRequestHeader(header.Key, string.Join(" ", header.Value)); + } + } + + if (this.CaCerts != null) + { + webSocketBuilder.ExpectServerCertificate(this.CaCerts); + } + + if (this.SkipTlsVerify) + { + webSocketBuilder.SkipServerCertificateValidation(); + } + + if (webSocketSubProtocol != null) + { + webSocketBuilder.Options.AddSubProtocol(webSocketSubProtocol); + } + + // Send Request + cancellationToken.ThrowIfCancellationRequested(); + + WebSocket webSocket = null; + try + { + BeforeRequest(); + webSocket = await webSocketBuilder.BuildAndConnectAsync(uri, cancellationToken).ConfigureAwait(false); + } + catch (WebSocketException wse) when (wse.WebSocketErrorCode == WebSocketError.HeaderError || + (wse.InnerException is WebSocketException && + ((WebSocketException)wse.InnerException).WebSocketErrorCode == + WebSocketError.HeaderError)) + { + // 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) + { + Scheme = uri.Scheme == "wss" ? "https" : "http", + }; + + var response = await HttpClient.GetAsync(uriBuilder.Uri, cancellationToken).ConfigureAwait(false); + + if (response.StatusCode == HttpStatusCode.SwitchingProtocols) + { + // This should never happen - the server just allowed us to switch to WebSockets but the previous call didn't work. + // Rethrow the original exception + response.Dispose(); + throw; + } + else + { +#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 = KubernetesJson.Deserialize(content); + V1Status status = null; + + if (genericObject.ApiVersion == "v1" && genericObject.Kind == "Status") + { + status = KubernetesJson.Deserialize(content); + } + + var ex = + new HttpOperationException( + $"The operation returned an invalid status code: {response.StatusCode}", wse) + { + Response = new HttpResponseMessageWrapper(response, content), + Body = status != null ? status : content, + }; + + response.Dispose(); + + throw ex; + } + } + catch (Exception) + { + throw; + } + finally + { + AfterRequest(); + } + + return webSocket; + } + } +} diff --git a/src/KubernetesClient/Kubernetes.cs b/src/KubernetesClient/Kubernetes.cs new file mode 100644 index 000000000..5e5021356 --- /dev/null +++ b/src/KubernetesClient/Kubernetes.cs @@ -0,0 +1,236 @@ +using k8s.Authentication; +using System.Net; +using System.Net.Http; + +namespace k8s +{ + public partial class Kubernetes : AbstractKubernetes, IKubernetes + { + private Uri baseuri; + + /// + /// The base URI of the service. + /// + public Uri BaseUri + { + get => baseuri; + set + { + var baseUrl = value?.AbsoluteUri ?? throw new ArgumentNullException(nameof(BaseUri)); + baseuri = new Uri(baseUrl + (baseUrl.EndsWith("/") ? "" : "/")); + } + } + + /// + /// Subscription credentials which uniquely identify client subscription. + /// + public ServiceClientCredentials Credentials { get; private set; } + + public HttpClient HttpClient { get; protected set; } + + /// + /// Reference to the first HTTP handler (which is the start of send HTTP + /// pipeline). + /// + private HttpMessageHandler FirstMessageHandler { get; set; } + + /// + /// Reference to the innermost HTTP handler (which is the end of send HTTP + /// pipeline). + /// +#if NET5_0_OR_GREATER + private SocketsHttpHandler HttpClientHandler { get; set; } +#else + private HttpClientHandler HttpClientHandler { get; set; } +#endif + +#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER + private bool DisableHttp2 { get; set; } +#endif + + /// + /// Initializes client properties. + /// + private void Initialize() + { + BaseUri = new Uri("http://localhost/"); + } + + protected override async Task> CreateResultAsync(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool? watch, CancellationToken cancellationToken) + { + if (httpRequest == null) + { + throw new ArgumentNullException(nameof(httpRequest)); + } + + if (httpResponse == null) + { + throw new ArgumentNullException(nameof(httpResponse)); + } + + var result = new HttpOperationResponse() { Request = httpRequest, Response = httpResponse }; + + if (watch == true) + { + httpResponse.Content = new LineSeparatedHttpContent(httpResponse.Content, cancellationToken); + } + + try + { +#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 + { + result.Body = KubernetesJson.Deserialize(stream, jsonSerializerOptions); + } + } + catch (JsonException) + { + httpRequest.Dispose(); + httpResponse.Dispose(); + 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 new file mode 100644 index 000000000..dba319136 --- /dev/null +++ b/src/KubernetesClient/KubernetesClient.csproj @@ -0,0 +1,22 @@ + + + + net8.0;net9.0 + k8s + true + + + + + + + + + + + + + + + + diff --git a/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs b/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs new file mode 100644 index 000000000..f25c55bbb --- /dev/null +++ b/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs @@ -0,0 +1,827 @@ +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 +{ + 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"); + + case "oidc": + { + var config = userDetails.UserCredentials.AuthProvider.Config; + AccessToken = config["id-token"]; + if (config.ContainsKey("client-id") + && config.ContainsKey("idp-issuer-url") + && config.ContainsKey("id-token") + && config.ContainsKey("refresh-token")) + { + string clientId = config["client-id"]; + string clientSecret = config.ContainsKey("client-secret") ? config["client-secret"] : null; + string idpIssuerUrl = config["idp-issuer-url"]; + string idToken = config["id-token"]; + string refreshToken = config["refresh-token"]; + + TokenProvider = new OidcTokenProvider(clientId, clientSecret, idpIssuerUrl, idToken, refreshToken); + + userCredentialsFound = true; + } + + break; + } + } + } + } + + 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 execInfo = new Dictionary + { + { "apiVersion", config.ApiVersion }, + { "kind", "ExecCredentials" }, + { "spec", new Dictionary { { "interactive", Environment.UserInteractive } } }, + }; + + var process = new Process(); + + process.StartInfo.EnvironmentVariables.Add("KUBERNETES_EXEC_INFO", JsonSerializer.Serialize(execInfo)); + 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 + { + var output = new StringBuilder(); + process.OutputDataReceived += (_, args) => + { + if (args.Data != null) + { + output.Append(args.Data); + } + }; + process.BeginOutputReadLine(); + + 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()); + + 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; + } + + 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}"); + } + + if (mergek8SConfig.Preferences != null) + { + foreach (var preference in mergek8SConfig.Preferences) + { + if (basek8SConfig.Preferences?.ContainsKey(preference.Key) == false) + { + basek8SConfig.Preferences[preference.Key] = preference.Value; + } + } + } + + // 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); + basek8SConfig.Clusters = MergeLists(basek8SConfig.Clusters, mergek8SConfig.Clusters, (s) => s.Name); + basek8SConfig.Users = MergeLists(basek8SConfig.Users, mergek8SConfig.Users, (s) => s.Name); + basek8SConfig.Contexts = MergeLists(basek8SConfig.Contexts, mergek8SConfig.Contexts, (s) => s.Name); + } + + 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/KubernetesClientConfiguration.InCluster.cs b/src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs new file mode 100644 index 000000000..4846b7425 --- /dev/null +++ b/src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs @@ -0,0 +1,78 @@ +using k8s.Authentication; +using k8s.Exceptions; + +namespace k8s +{ + public partial class KubernetesClientConfiguration + { +#pragma warning disable SA1401 + // internal for testing + internal static string ServiceAccountPath = + Path.Combine(new string[] + { + $"{Path.DirectorySeparatorChar}var", "run", "secrets", "kubernetes.io", "serviceaccount", + }); +#pragma warning restore SA1401 + + internal const string ServiceAccountTokenKeyFileName = "token"; + internal const string ServiceAccountRootCAKeyFileName = "ca.crt"; + internal const string ServiceAccountNamespaceFileName = "namespace"; + + 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 (!FileSystem.Current.Exists(tokenPath)) + { + return false; + } + + var certPath = Path.Combine(ServiceAccountPath, ServiceAccountRootCAKeyFileName); + return FileSystem.Current.Exists(certPath); + } + + public static KubernetesClientConfiguration InClusterConfig() + { + if (!IsInCluster()) + { + throw new KubeConfigException( + "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); + var host = Environment.GetEnvironmentVariable("KUBERNETES_SERVICE_HOST"); + var port = Environment.GetEnvironmentVariable("KUBERNETES_SERVICE_PORT"); + if (string.IsNullOrEmpty(host)) + { + host = "kubernetes.default.svc"; + } + + if (string.IsNullOrEmpty(port)) + { + port = "443"; + } + + var result = new KubernetesClientConfiguration + { + Host = new UriBuilder("https", host, Convert.ToInt32(port)).ToString(), + TokenProvider = new TokenFileAuth(Path.Combine(ServiceAccountPath, ServiceAccountTokenKeyFileName)), + SslCaCerts = CertUtils.LoadPemFileCert(rootCAFile), + }; + + var namespaceFile = Path.Combine(ServiceAccountPath, ServiceAccountNamespaceFileName); + if (FileSystem.Current.Exists(namespaceFile)) + { + result.Namespace = FileSystem.Current.ReadAllText(namespaceFile); + } + + return result; + } + } +} diff --git a/src/KubernetesClient/KubernetesClientConfiguration.cs b/src/KubernetesClient/KubernetesClientConfiguration.cs new file mode 100644 index 000000000..ac4a66719 --- /dev/null +++ b/src/KubernetesClient/KubernetesClientConfiguration.cs @@ -0,0 +1,152 @@ +using k8s.Authentication; +using System.Net.Http; +using System.Security.Cryptography.X509Certificates; + +namespace k8s +{ + /// + /// Represents a set of kubernetes client configuration settings + /// + public partial class KubernetesClientConfiguration + { + private JsonSerializerOptions jsonSerializerOptions; + + /// + /// Gets current namespace + /// + public string Namespace { get; set; } + + /// + /// Gets Host + /// + public string Host { get; set; } + + /// + /// Gets SslCaCerts + /// + public X509Certificate2Collection SslCaCerts { get; set; } + + /// + /// Gets ClientCertificateData + /// + public string ClientCertificateData { get; set; } + + /// + /// Gets ClientCertificate Key + /// + public string ClientCertificateKeyData { get; set; } + + /// + /// Gets ClientCertificate filename + /// + public string ClientCertificateFilePath { get; set; } + + /// + /// Gets or sets the ClientCertificate KeyStoreFlags to specify where and how to import the certificate private key + /// + public X509KeyStorageFlags? ClientCertificateKeyStoreFlags { get; set; } + + /// + /// Gets ClientCertificate Key filename + /// + public string ClientKeyFilePath { get; set; } + + /// + /// Gets a value indicating whether to skip ssl server cert validation + /// + public bool SkipTlsVerify { get; set; } + + /// + /// Option to override the TLS server name + /// + public string TlsServerName { get; set; } + + /// + /// Gets or sets the HTTP user agent. + /// + /// Http user agent. + public string UserAgent { get; set; } + + /// + /// Gets or sets the username (HTTP basic authentication). + /// + /// The username. + public string Username { get; set; } + + /// + /// Gets or sets the password (HTTP basic authentication). + /// + /// The password. + public string Password { get; set; } + + /// + /// Gets or sets the access token for OAuth2 authentication. + /// + /// The access token. + public string AccessToken { get; set; } + + /// + /// Gets or sets the TokenProvider for authentication. + /// + /// The access token. + public ITokenProvider TokenProvider { get; set; } + + /// + /// 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 new file mode 100644 index 000000000..7d5ab6fb5 --- /dev/null +++ b/src/KubernetesClient/KubernetesException.cs @@ -0,0 +1,79 @@ +namespace k8s +{ + /// + /// Represents an error message returned by the Kubernetes API server. + /// + public class KubernetesException : Exception + { + /// + /// Initializes a new instance of the class. + /// + public KubernetesException() + { + } + + /// + /// Initializes a new instance of the class using + /// the data from a object. + /// + /// + /// A status message which triggered this exception to be thrown. + /// + public KubernetesException(V1Status status) + : this(status?.Message) + { + Status = status; + } + + /// + /// Initializes a new instance of the class using + /// the data from a object and a reference to the inner exception + /// that is the cause of this exception.. + /// + /// + /// A status message which triggered this exception to be thrown. + /// + /// + /// The exception that is the cause of the current exception, or + /// if no inner exception is specified. + /// + public KubernetesException(V1Status status, Exception innerException) + : this(status?.Message, innerException) + { + Status = status; + } + + /// + /// Initializes a new instance of the class with an error message. + /// + /// + /// The error message that explains the reason for the exception. + /// + public KubernetesException(string message) + : base(message) + { + } + + /// + /// Initializes a new instance of the class with a specified error + /// message and a reference to the inner exception that is the cause of this exception. + /// + /// + /// The error message that explains the reason for the exception. + /// + /// + /// The exception that is the cause of the current exception, or + /// if no inner exception is specified. + /// + public KubernetesException(string message, Exception innerException) + : base(message, innerException) + { + } + + /// + /// Gets, when this exception was raised because of a Kubernetes status message, the underlying + /// Kubernetes status message. + /// + public V1Status Status { get; private set; } + } +} 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 new file mode 100644 index 000000000..b676cd542 --- /dev/null +++ b/src/KubernetesClient/KubernetesMetricsExtensions.cs @@ -0,0 +1,57 @@ +namespace k8s +{ + /// + /// Extension methods for Kubernetes metrics. + /// + public static class KubernetesMetricsExtensions + { + /// + /// Get nodes metrics pull from metrics server API. + /// + /// kubernetes client object + /// the metrics + public static async Task GetKubernetesNodesMetricsAsync(this IKubernetes kubernetes) + { + 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(); + } + + /// + /// Get pods metrics pull from metrics server API. + /// + /// kubernetes client object + /// the metrics + public static async Task GetKubernetesPodsMetricsAsync(this IKubernetes kubernetes) + { + 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(); + } + + /// + /// Get pods metrics by namespace pull from metrics server API. + /// + /// kubernetes client object + /// the querying namespace + /// the metrics + public static async Task GetKubernetesPodsMetricsByNamespaceAsync(this IKubernetes kubernetes, string namespaceParameter) + { + 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 new file mode 100644 index 000000000..ff25e8be4 --- /dev/null +++ b/src/KubernetesClient/KubernetesObject.cs @@ -0,0 +1,34 @@ +namespace k8s +{ + /// + /// Represents a generic Kubernetes object. + /// + /// + /// You can use the if you receive JSON from a Kubernetes API server but + /// are unsure which object the API server is about to return. You can parse the JSON as a + /// and use the and properties to get basic metadata about any Kubernetes object. + /// You can then + /// + public class KubernetesObject : IKubernetesObject + { + /// + /// Gets or 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/api-conventions.md#resources + /// + [JsonPropertyName("apiVersion")] + public string ApiVersion { get; set; } + + /// + /// Gets or sets kind is a string value representing the REST resource + /// this object represents. Servers may infer this from the endpoint + /// the client submits requests to. Cannot be updated. In CamelCase. + /// More info: + /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + /// + [JsonPropertyName("kind")] + public string Kind { get; set; } + } +} diff --git a/src/KubernetesClient/KubernetesRequestDigest.cs b/src/KubernetesClient/KubernetesRequestDigest.cs new file mode 100644 index 000000000..8024d9f34 --- /dev/null +++ b/src/KubernetesClient/KubernetesRequestDigest.cs @@ -0,0 +1,111 @@ +// Derived from +// https://github.com/kubernetes-client/java/blob/master/util/src/main/java/io/kubernetes/client/apimachinery/KubernetesResource.java +using System.Net.Http; +using System.Text.RegularExpressions; +using System.Web; + +namespace k8s +{ + internal class KubernetesRequestDigest + { + private static readonly Regex ResourcePattern = + new Regex(@"^/(api|apis)(/\S+)?/v\d\w*/\S+", RegexOptions.Compiled); + + public string Path { get; } + public bool IsNonResourceRequest { get; } + public string ApiGroup { get; } + public string ApiVersion { get; } + public string Kind { get; } + public string Verb { get; } + + public KubernetesRequestDigest(string urlPath, bool isNonResourceRequest, string apiGroup, string apiVersion, string kind, string verb) + { + this.Path = urlPath; + this.IsNonResourceRequest = isNonResourceRequest; + this.ApiGroup = apiGroup; + this.ApiVersion = apiVersion; + this.Kind = kind; + this.Verb = verb; + } + + public static KubernetesRequestDigest Parse(HttpRequestMessage request) + { + if (request == null) + { + throw new ArgumentNullException(nameof(request)); + } + + string urlPath = request.RequestUri.AbsolutePath; + if (!IsResourceRequest(urlPath)) + { + return NonResource(urlPath); + } + + try + { + string apiGroup; + string apiVersion; + string kind; + + var parts = urlPath.Split('/'); + var namespaced = urlPath.IndexOf("/namespaces/", StringComparison.Ordinal) != -1; + + if (urlPath.StartsWith("/api/v1", StringComparison.Ordinal)) + { + apiGroup = ""; + apiVersion = "v1"; + + if (namespaced) + { + kind = parts[5]; + } + else + { + kind = parts[3]; + } + } + else + { + apiGroup = parts[2]; + apiVersion = parts[3]; + if (namespaced) + { + kind = parts[6]; + } + else + { + kind = parts[4]; + } + } + + return new KubernetesRequestDigest( + urlPath, + false, + apiGroup, + apiVersion, + kind, + HasWatchParameter(request) ? "WATCH" : request.Method.ToString()); + } + catch (Exception) + { + return NonResource(urlPath); + } + } + + private static KubernetesRequestDigest NonResource(string urlPath) + { + var digest = new KubernetesRequestDigest(urlPath, true, "nonresource", "na", "na", "na"); + return digest; + } + + public static bool IsResourceRequest(string urlPath) + { + return ResourcePattern.Matches(urlPath).Count > 0; + } + + private static bool HasWatchParameter(HttpRequestMessage request) + { + return !string.IsNullOrEmpty(HttpUtility.ParseQueryString(request.RequestUri.Query).Get("watch")); + } + } +} diff --git a/src/KubernetesClient/KubernetesYaml.cs b/src/KubernetesClient/KubernetesYaml.cs new file mode 100644 index 000000000..ef5384c72 --- /dev/null +++ b/src/KubernetesClient/KubernetesYaml.cs @@ -0,0 +1,326 @@ +using System.Reflection; +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. + /// + public static class KubernetesYaml + { + 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()) + .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() + .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) + .WithOverridesFromJsonPropertyAttributes() + .BuildValueSerializer(); + + private static readonly IDictionary ModelTypeMap = typeof(KubernetesEntityAttribute).Assembly + .GetTypes() + .Where(t => t.GetCustomAttributes(typeof(KubernetesEntityAttribute), true).Any()) + .ToDictionary( + t => + { + var attr = (KubernetesEntityAttribute)t.GetCustomAttribute( + typeof(KubernetesEntityAttribute), true); + var groupPrefix = string.IsNullOrEmpty(attr.Group) ? "" : $"{attr.Group}/"; + return $"{groupPrefix}{attr.ApiVersion}/{attr.Kind}"; + }, + t => t); + + 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)); + } + } + + /// + /// Load a collection of objects from a stream asynchronously + /// + /// caller is responsible for closing the stream + /// + /// + /// The stream to load the objects from. + /// + /// + /// 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, bool strict = false) + { + var reader = new StreamReader(stream); + var content = await reader.ReadToEndAsync().ConfigureAwait(false); + return LoadAllFromString(content, typeMap); + } + + + /// + /// Load a collection of objects from a file asynchronously + /// + /// The name of the file to load from. + /// + /// 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, bool strict = false) + { + using (var fileStream = File.OpenRead(fileName)) + { + return await LoadAllFromStreamAsync(fileStream, typeMap).ConfigureAwait(false); + } + } + + /// + /// Load a collection of objects from a string + /// + /// + /// The string to load the objects from. + /// + /// + /// 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, 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 MergingParser(new Parser(new StringReader(content))); + parser.Consume(); + while (parser.Accept(out _)) + { + lock (DeserializerLockObject) + { + var dict = GetDeserializer(strict).Deserialize>(parser); + types.Add(mergedTypeMap[dict["apiVersion"] + "/" + dict["kind"]]); + } + } + + 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++]; + lock (DeserializerLockObject) + { + var obj = GetDeserializer(strict).Deserialize(parser, objType); + results.Add(obj); + } + } + + return results; + } + + 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); + 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()); + lock (SerializerLockObject) + { + Serializer.SerializeValue(emitter, value, value.GetType()); + } + + return stringBuilder.ToString(); + } + + private static TBuilder WithOverridesFromJsonPropertyAttributes(this TBuilder builder) + where TBuilder : BuilderSkeleton + { + // Use VersionInfo from the model namespace as that should be stable. + // If this is not generated in the future we will get an obvious compiler error. + var targetNamespace = typeof(VersionInfo).Namespace; + + // Get all the concrete model types from the code generated namespace. + var types = typeof(KubernetesEntityAttribute).Assembly + .ExportedTypes + .Where(type => type.Namespace == targetNamespace && + !type.IsInterface && + !type.IsAbstract); + + // Map any JsonPropertyAttribute instances to YamlMemberAttribute instances. + foreach (var type in types) + { + foreach (var property in type.GetProperties()) + { + var jsonAttribute = property.GetCustomAttribute(); + if (jsonAttribute == null) + { + continue; + } + + var yamlAttribute = new YamlMemberAttribute { Alias = jsonAttribute.Name, ApplyNamingConventions = false }; + builder.WithAttributeOverride(type, property.Name, yamlAttribute); + } + } + + return builder; + } + } +} diff --git a/src/KubernetesClient/LeaderElection/ILock.cs b/src/KubernetesClient/LeaderElection/ILock.cs new file mode 100644 index 000000000..a56e0fd38 --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ILock.cs @@ -0,0 +1,43 @@ +namespace k8s.LeaderElection +{ + /// + /// ILock offers a common interface for locking on arbitrary resources used in leader election. The Interface is used to hide the details on specific implementations in order to allow them to change over time. + /// + public interface ILock + { + /// + /// Get returns the LeaderElectionRecord + /// + /// token to cancel the task + /// the record + Task GetAsync(CancellationToken cancellationToken = default); + + /// + /// Create attempts to create a LeaderElectionRecord + /// + /// record to create + /// token to cancel the task + /// true if created + Task CreateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default); + + /// + /// Update will update and existing LeaderElectionRecord + /// + /// record to create + /// token to cancel the task + /// true if updated + Task UpdateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default); + + + /// + /// the locks Identity + /// + string Identity { get; } + + /// + /// Describe is used to convert details on current resource lock into a string + /// + /// resource lock description + string Describe(); + } +} diff --git a/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs b/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs new file mode 100644 index 000000000..bdc0dee38 --- /dev/null +++ b/src/KubernetesClient/LeaderElection/LeaderElectionConfig.cs @@ -0,0 +1,18 @@ +namespace k8s.LeaderElection +{ + public class LeaderElectionConfig + { + public ILock Lock { get; set; } + + public TimeSpan LeaseDuration { get; set; } = TimeSpan.FromSeconds(15); + + public TimeSpan RenewDeadline { get; set; } = TimeSpan.FromSeconds(10); + + public TimeSpan RetryPeriod { get; set; } = TimeSpan.FromSeconds(2); + + public LeaderElectionConfig(ILock @lock) + { + Lock = @lock; + } + } +} diff --git a/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs b/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs new file mode 100644 index 000000000..98bae7dac --- /dev/null +++ b/src/KubernetesClient/LeaderElection/LeaderElectionRecord.cs @@ -0,0 +1,72 @@ +namespace k8s.LeaderElection +{ + /// + /// LeaderElectionRecord is the record that is stored in the leader election annotation. + /// This information should be used for observational purposes only and could be replaced with a random string (e.g. UUID) with only slight modification of this code. + /// + public class LeaderElectionRecord + { + /// + /// the ID that owns the lease. If empty, no one owns this lease and all callers may acquire. + /// + public string HolderIdentity { get; set; } + + /// + /// LeaseDuration in seconds + /// + public int LeaseDurationSeconds { get; set; } + + /// + /// acquire time + /// + // public DateTimeOffset? AcquireTime { get; set; } + public DateTime? AcquireTime { get; set; } + + /// + /// renew time + /// + // public DateTimeOffset? RenewTime { get; set; } + public DateTime? RenewTime { get; set; } + + /// + /// leader transitions + /// + public int LeaderTransitions { get; set; } + + protected bool Equals(LeaderElectionRecord other) + { + return HolderIdentity == other?.HolderIdentity && Nullable.Equals(AcquireTime, other.AcquireTime) && Nullable.Equals(RenewTime, other.RenewTime); + } + + public override bool Equals(object obj) + { + if (ReferenceEquals(null, obj)) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (obj.GetType() != this.GetType()) + { + return false; + } + + return Equals((LeaderElectionRecord)obj); + } + + public override int GetHashCode() + { + unchecked + { + 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 new file mode 100644 index 000000000..e7d86f9af --- /dev/null +++ b/src/KubernetesClient/LeaderElection/LeaderElector.cs @@ -0,0 +1,290 @@ +using System.Net; + +namespace k8s.LeaderElection +{ + public class LeaderElector : IDisposable + { + private const double JitterFactor = 1.2; + + private readonly LeaderElectionConfig config; + + /// + /// OnStartedLeading is called when a LeaderElector client starts leading + /// + public event Action OnStartedLeading; + + /// + /// OnStoppedLeading is called when a LeaderElector client stops leading + /// + public event Action OnStoppedLeading; + + /// + /// OnNewLeader is called when the client observes a leader that is + /// not the previously observed leader. This includes the first observed + /// leader when the client starts. + /// + 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; + + public LeaderElector(LeaderElectionConfig config) + { + this.config = config; + } + + public bool IsLeader() + { + return observedRecord?.HolderIdentity != null && observedRecord?.HolderIdentity == config.Lock.Identity; + } + + public string GetLeader() + { + return observedRecord?.HolderIdentity; + } + + /// + /// 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); + + try + { + OnStartedLeading?.Invoke(); + + // renew loop + for (; ; ) + { + cancellationToken.ThrowIfCancellationRequested(); + var acq = Task.Run(async () => + { + try + { + while (!await TryAcquireOrRenew(cancellationToken).ConfigureAwait(false)) + { + await Task.Delay(config.RetryPeriod, cancellationToken).ConfigureAwait(false); + MaybeReportTransition(); + } + } + catch (Exception e) + { + OnError?.Invoke(e); + // ignore + return false; + } + + return true; + }); + + + if (await Task.WhenAny(acq, Task.Delay(config.RenewDeadline, cancellationToken)) + .ConfigureAwait(false) == acq) + { + var succ = await acq.ConfigureAwait(false); + + if (succ) + { + await Task.Delay(config.RetryPeriod, cancellationToken).ConfigureAwait(false); + // retry + continue; + } + + // renew failed + } + + // timeout + break; + } + } + finally + { + OnStoppedLeading?.Invoke(); + } + } + + /// + /// 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; + var leaderElectionRecord = new LeaderElectionRecord() + { + HolderIdentity = l.Identity, + LeaseDurationSeconds = (int)config.LeaseDuration.TotalSeconds, + AcquireTime = DateTime.UtcNow, + RenewTime = DateTime.UtcNow, + LeaderTransitions = 0, + }; + + // 1. obtain or create the ElectionRecord + + LeaderElectionRecord oldLeaderElectionRecord = null; + try + { + oldLeaderElectionRecord = await l.GetAsync(cancellationToken).ConfigureAwait(false); + } + catch (HttpOperationException e) + { + if (e.Response.StatusCode != HttpStatusCode.NotFound) + { + OnError?.Invoke(e); + return false; + } + } + + if (oldLeaderElectionRecord?.AcquireTime == null || + oldLeaderElectionRecord?.RenewTime == null || + oldLeaderElectionRecord?.HolderIdentity == null) + { + var created = await l.CreateAsync(leaderElectionRecord, cancellationToken).ConfigureAwait(false); + if (created) + { + observedRecord = leaderElectionRecord; + observedTime = DateTimeOffset.Now; + return true; + } + + return false; + } + + + // 2. Record obtained, check the Identity & Time + if (!Equals(observedRecord, oldLeaderElectionRecord)) + { + observedRecord = oldLeaderElectionRecord; + observedTime = DateTimeOffset.Now; + } + + if (!string.IsNullOrEmpty(oldLeaderElectionRecord.HolderIdentity) + && observedTime + config.LeaseDuration > DateTimeOffset.Now + && !IsLeader()) + { + // lock is held by %v and has not yet expired", oldLeaderElectionRecord.HolderIdentity + return false; + } + + // 3. We're going to try to update. The leaderElectionRecord is set to it's default + // here. Let's correct it before updating. + if (IsLeader()) + { + leaderElectionRecord.AcquireTime = oldLeaderElectionRecord.AcquireTime; + leaderElectionRecord.LeaderTransitions = oldLeaderElectionRecord.LeaderTransitions; + } + else + { + leaderElectionRecord.LeaderTransitions = oldLeaderElectionRecord.LeaderTransitions + 1; + } + + var updated = await l.UpdateAsync(leaderElectionRecord, cancellationToken).ConfigureAwait(false); + if (!updated) + { + return false; + } + + observedRecord = leaderElectionRecord; + observedTime = DateTimeOffset.Now; + + return true; + } + + private async Task AcquireAsync(CancellationToken cancellationToken) + { + var delay = (int)config.RetryPeriod.TotalMilliseconds; + for (; ; ) + { + try + { + var acq = TryAcquireOrRenew(cancellationToken); + + if (await Task.WhenAny(acq, Task.Delay((int)(delay * JitterFactor * (new Random().NextDouble() + 1)), cancellationToken)) + .ConfigureAwait(false) == acq) + { + if (await acq.ConfigureAwait(false)) + { + return; + } + + // wait RetryPeriod since acq return immediately + await Task.Delay(delay, cancellationToken).ConfigureAwait(false); + } + else + { + // else timeout + _ = acq.ContinueWith(t => OnError?.Invoke(t.Exception), TaskContinuationOptions.OnlyOnFaulted); + } + } + finally + { + MaybeReportTransition(); + } + } + } + + private void MaybeReportTransition() + { + if (observedRecord == null) + { + return; + } + + if (observedRecord.HolderIdentity == reportedLeader) + { + return; + } + + reportedLeader = observedRecord.HolderIdentity; + + OnNewLeader?.Invoke(reportedLeader); + } + + protected virtual void Dispose(bool disposing) + { + if (disposing) + { + } + } + + /// + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + } +} diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs new file mode 100644 index 000000000..eef16edde --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ResourceLock/ConfigMapLock.cs @@ -0,0 +1,46 @@ +namespace k8s.LeaderElection.ResourceLock +{ + public class ConfigMapLock : MetaObjectAnnotationLock + { + public ConfigMapLock(IKubernetes client, string @namespace, string name, string identity) + : base(client, @namespace, name, identity) + { + } + + protected override Task ReadMetaObjectAsync(IKubernetes client, string name, + string 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) + { + 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) + { + 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 new file mode 100644 index 000000000..23ebaab1f --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ResourceLock/EndpointsLock.cs @@ -0,0 +1,42 @@ +namespace k8s.LeaderElection.ResourceLock +{ + public class EndpointsLock : MetaObjectAnnotationLock + { + public EndpointsLock(IKubernetes client, string @namespace, string name, string identity) + : base(client, @namespace, name, identity) + { + } + + protected override Task ReadMetaObjectAsync(IKubernetes client, string name, string 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) + { + 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) + { + 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 new file mode 100644 index 000000000..38de063ce --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ResourceLock/LeaseLock.cs @@ -0,0 +1,84 @@ +namespace k8s.LeaderElection.ResourceLock +{ + public class LeaseLock : MetaObjectLock + { + public LeaseLock(IKubernetes client, string @namespace, string name, string identity) + : base(client, @namespace, name, identity) + { + } + + protected override Task ReadMetaObjectAsync(IKubernetes client, string name, string 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) + { + if (obj == null) + { + return null; + } + + return new LeaderElectionRecord() + { + AcquireTime = obj.Spec.AcquireTime, + HolderIdentity = obj.Spec.HolderIdentity, + LeaderTransitions = obj.Spec.LeaseTransitions ?? 0, + LeaseDurationSeconds = obj.Spec.LeaseDurationSeconds ?? 15, // 15 = default value + RenewTime = obj.Spec.RenewTime, + }; + } + + protected override V1Lease SetLeaderElectionRecord(LeaderElectionRecord record, V1Lease metaObj) + { + if (record == null) + { + throw new NullReferenceException(nameof(record)); + } + + if (metaObj == null) + { + throw new NullReferenceException(nameof(metaObj)); + } + + metaObj.Spec = new V1LeaseSpec() + { + AcquireTime = record.AcquireTime, + HolderIdentity = record.HolderIdentity, + LeaseTransitions = record.LeaderTransitions, + LeaseDurationSeconds = record.LeaseDurationSeconds, + RenewTime = record.RenewTime, + }; + + return metaObj; + } + + protected override Task CreateMetaObjectAsync(IKubernetes client, V1Lease obj, string 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) + { + 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 new file mode 100644 index 000000000..42f948db8 --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectAnnotationLock.cs @@ -0,0 +1,33 @@ +namespace k8s.LeaderElection.ResourceLock +{ + public abstract class MetaObjectAnnotationLock : MetaObjectLock + where T : class, IMetadata, new() + { + protected MetaObjectAnnotationLock(IKubernetes client, string @namespace, string name, string identity) + : base(client, @namespace, name, identity) + { + } + + private const string LeaderElectionRecordAnnotationKey = "control-plane.alpha.kubernetes.io/leader"; + + protected override LeaderElectionRecord GetLeaderElectionRecord(T obj) + { + var recordRawStringContent = obj.GetAnnotation(LeaderElectionRecordAnnotationKey); + + if (string.IsNullOrEmpty(recordRawStringContent)) + { + return new LeaderElectionRecord(); + } + + var record = KubernetesJson.Deserialize(recordRawStringContent); + return record; + } + + + protected override T SetLeaderElectionRecord(LeaderElectionRecord record, T metaObj) + { + metaObj.SetAnnotation(LeaderElectionRecordAnnotationKey, KubernetesJson.Serialize(record)); + return metaObj; + } + } +} diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs new file mode 100644 index 000000000..e2540482f --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MetaObjectLock.cs @@ -0,0 +1,104 @@ +namespace k8s.LeaderElection.ResourceLock +{ + public abstract class MetaObjectLock : ILock + where T : class, IMetadata, new() + { + 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)); + ns = @namespace; + this.name = name; + this.identity = identity; + } + + public string Identity => identity; + + public async Task GetAsync(CancellationToken cancellationToken = default) + { + var obj = await ReadMetaObjectAsync(client, name, ns, cancellationToken).ConfigureAwait(false); + var record = GetLeaderElectionRecord(obj); + + Interlocked.Exchange(ref metaObjCache, obj); + return record; + } + + protected abstract Task ReadMetaObjectAsync(IKubernetes client, string name, string namespaceParameter, CancellationToken cancellationToken); + + public async Task CreateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default) + { + var metaObj = new T + { + Metadata = new V1ObjectMeta() { Name = name, NamespaceProperty = ns }, + }; + + metaObj = SetLeaderElectionRecord(record, metaObj); + + try + { + var createdObj = await CreateMetaObjectAsync(client, metaObj, ns, cancellationToken) + .ConfigureAwait(false); + + Interlocked.Exchange(ref metaObjCache, createdObj); + return true; + } + catch (HttpOperationException e) + { + OnHttpError?.Invoke(e); + // ignore + } + + return false; + } + + protected abstract LeaderElectionRecord GetLeaderElectionRecord(T obj); + + protected abstract T SetLeaderElectionRecord(LeaderElectionRecord record, T metaObj); + + + protected abstract Task CreateMetaObjectAsync(IKubernetes client, T obj, string namespaceParameter, CancellationToken cancellationToken); + + public async Task UpdateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default) + { + var metaObj = Interlocked.CompareExchange(ref metaObjCache, null, null); + if (metaObj == null) + { + throw new InvalidOperationException("endpoint not initialized, call get or create first"); + } + + metaObj = SetLeaderElectionRecord(record, metaObj); + + try + { + var replacedObj = await ReplaceMetaObjectAsync(client, metaObj, name, ns, cancellationToken).ConfigureAwait(false); + + Interlocked.Exchange(ref metaObjCache, replacedObj); + return true; + } + catch (HttpOperationException e) + { + OnHttpError?.Invoke(e); + // ignore + } + + return false; + } + + protected abstract Task ReplaceMetaObjectAsync(IKubernetes client, T obj, string name, string namespaceParameter, CancellationToken cancellationToken); + + public string Describe() + { + return $"{ns}/{name}"; + } + } +} diff --git a/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs b/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs new file mode 100644 index 000000000..64256612e --- /dev/null +++ b/src/KubernetesClient/LeaderElection/ResourceLock/MultiLock.cs @@ -0,0 +1,38 @@ +namespace k8s.LeaderElection.ResourceLock +{ + public class MultiLock : ILock + { + private readonly ILock primary; + private readonly ILock secondary; + + public MultiLock(ILock primary, ILock secondary) + { + this.primary = primary; + this.secondary = secondary; + } + + public Task GetAsync(CancellationToken cancellationToken = default) + { + return primary.GetAsync(cancellationToken); + } + + public async Task CreateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default) + { + return await primary.CreateAsync(record, cancellationToken).ConfigureAwait(false) + && await secondary.CreateAsync(record, cancellationToken).ConfigureAwait(false); + } + + public async Task UpdateAsync(LeaderElectionRecord record, CancellationToken cancellationToken = default) + { + return await primary.UpdateAsync(record, cancellationToken).ConfigureAwait(false) + && await secondary.UpdateAsync(record, cancellationToken).ConfigureAwait(false); + } + + public string Identity => primary.Identity; + + public string Describe() + { + return primary.Describe(); + } + } +} diff --git a/src/KubernetesClient/LineSeparatedHttpContent.cs b/src/KubernetesClient/LineSeparatedHttpContent.cs new file mode 100644 index 000000000..9206fe4ff --- /dev/null +++ b/src/KubernetesClient/LineSeparatedHttpContent.cs @@ -0,0 +1,211 @@ +using System.Net; +using System.Net.Http; + +namespace k8s +{ + internal sealed class LineSeparatedHttpContent : HttpContent + { + private readonly HttpContent _originContent; + private readonly CancellationToken _cancellationToken; + private Stream _originStream; + + public LineSeparatedHttpContent(HttpContent originContent, CancellationToken cancellationToken) + { + _originContent = originContent; + _cancellationToken = cancellationToken; + } + + public TextReader StreamReader { get; private set; } + + protected override async Task SerializeToStreamAsync(Stream stream, TransportContext context) + { + _originStream = await _originContent.ReadAsStreamAsync().ConfigureAwait(false); + + var reader = new PeekableStreamReader(new CancelableStream(_originStream, _cancellationToken)); + StreamReader = reader; + + var firstLine = await reader.PeekLineAsync().ConfigureAwait(false); + + var writer = new StreamWriter(stream); + + await writer.WriteAsync(firstLine).ConfigureAwait(false); + await writer.FlushAsync().ConfigureAwait(false); + } + + protected override bool TryComputeLength(out long length) + { + length = 0; + return false; + } + + internal sealed class CancelableStream : Stream + { + private readonly Stream _innerStream; + private readonly CancellationToken _cancellationToken; + + public CancelableStream(Stream innerStream, CancellationToken cancellationToken) + { + _innerStream = innerStream; + _cancellationToken = cancellationToken; + } + + public override void Flush() => + _innerStream.FlushAsync(_cancellationToken).GetAwaiter().GetResult(); + + public override async Task FlushAsync(CancellationToken cancellationToken) + { + using (var cancellationTokenSource = CreateCancellationTokenSource(cancellationToken)) + { + await _innerStream.FlushAsync(cancellationTokenSource.Token).ConfigureAwait(false); + } + } + + public override int Read(byte[] buffer, int offset, int count) => + _innerStream.ReadAsync(buffer, offset, count, _cancellationToken).GetAwaiter().GetResult(); + + public override async Task ReadAsync(byte[] buffer, int offset, int count, + CancellationToken cancellationToken) + { + using (var cancellationTokenSource = CreateCancellationTokenSource(cancellationToken)) + { + return await _innerStream.ReadAsync(buffer, offset, count, cancellationTokenSource.Token) + .ConfigureAwait(false); + } + } + + public override long Seek(long offset, SeekOrigin origin) => _innerStream.Seek(offset, origin); + + public override void SetLength(long value) => _innerStream.SetLength(value); + + public override void Write(byte[] buffer, int offset, int count) => + _innerStream.WriteAsync(buffer, offset, count, _cancellationToken).GetAwaiter().GetResult(); + + public override async Task WriteAsync(byte[] buffer, int offset, int count, + CancellationToken cancellationToken) + { + using (var cancellationTokenSource = CreateCancellationTokenSource(cancellationToken)) + { + await _innerStream.WriteAsync(buffer, offset, count, cancellationTokenSource.Token) + .ConfigureAwait(false); + } + } + + public override bool CanRead => _innerStream.CanRead; + + public override bool CanSeek => _innerStream.CanSeek; + + public override bool CanWrite => _innerStream.CanWrite; + + public override long Length => _innerStream.Length; + + public override long Position + { + get => _innerStream.Position; + set => _innerStream.Position = value; + } + + protected override void Dispose(bool disposing) + { + if (disposing) + { + _innerStream.Dispose(); + } + + base.Dispose(disposing); + } + + private LinkedCancellationTokenSource CreateCancellationTokenSource(CancellationToken userCancellationToken) + { + return new LinkedCancellationTokenSource(_cancellationToken, userCancellationToken); + } + + private readonly struct LinkedCancellationTokenSource : IDisposable + { + private readonly CancellationTokenSource _cancellationTokenSource; + + public LinkedCancellationTokenSource(CancellationToken token1, CancellationToken token2) + { + if (token1.CanBeCanceled && token2.CanBeCanceled) + { + _cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token1, token2); + Token = _cancellationTokenSource.Token; + } + else + { + _cancellationTokenSource = null; + Token = token1.CanBeCanceled ? token1 : token2; + } + } + + public CancellationToken Token { get; } + + public void Dispose() + { + _cancellationTokenSource?.Dispose(); + } + } + } + + internal sealed class PeekableStreamReader : TextReader + { + private readonly Queue _buffer; + private readonly StreamReader _inner; + + public PeekableStreamReader(Stream stream) + { + _buffer = new Queue(); + _inner = new StreamReader(stream); + } + + public override string ReadLine() => throw new NotImplementedException(); + + public override Task ReadLineAsync() + { + if (_buffer.Count > 0) + { + return Task.FromResult(_buffer.Dequeue()); + } + + return _inner.ReadLineAsync(); + } + + public async Task PeekLineAsync() + { + var line = await ReadLineAsync().ConfigureAwait(false); + if (line == null) + { + throw new EndOfStreamException(); + } + + _buffer.Enqueue(line); + return line; + } + + public override int Read() => throw new NotImplementedException(); + + public override int Read(char[] buffer, int index, int count) => throw new NotImplementedException(); + + public override Task ReadAsync(char[] buffer, int index, int count) => + throw new NotImplementedException(); + + public override int ReadBlock(char[] buffer, int index, int count) => throw new NotImplementedException(); + + public override Task ReadBlockAsync(char[] buffer, int index, int count) => + throw new NotImplementedException(); + + public override string ReadToEnd() => throw new NotImplementedException(); + + public override Task ReadToEndAsync() => throw new NotImplementedException(); + + protected override void Dispose(bool disposing) + { + if (disposing) + { + _inner.Dispose(); + } + + base.Dispose(disposing); + } + } + } +} diff --git a/src/KubernetesClient/Models/ContainerMetrics.cs b/src/KubernetesClient/Models/ContainerMetrics.cs new file mode 100644 index 000000000..816efcf65 --- /dev/null +++ b/src/KubernetesClient/Models/ContainerMetrics.cs @@ -0,0 +1,20 @@ +namespace k8s.Models +{ + /// + /// Describes the resource usage metrics of a container pull from metrics server API. + /// + public class ContainerMetrics + { + /// + /// Defines container name corresponding to the one from pod.spec.containers. + /// + [JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The resource 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/Models/IStatus.cs b/src/KubernetesClient/Models/IStatus.cs new file mode 100644 index 000000000..75d796666 --- /dev/null +++ b/src/KubernetesClient/Models/IStatus.cs @@ -0,0 +1,17 @@ +namespace k8s.Models +{ + /// + /// Kubernetes object that exposes status + /// + /// The type of status object + public interface IStatus + { + /// + /// Gets or sets most recently observed status of the object. 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 + /// + T Status { get; set; } + } +} 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/Models/IntOrStringYamlConverter.cs b/src/KubernetesClient/Models/IntOrStringYamlConverter.cs new file mode 100644 index 000000000..cfaa42205 --- /dev/null +++ b/src/KubernetesClient/Models/IntOrStringYamlConverter.cs @@ -0,0 +1,41 @@ +using YamlDotNet.Core; +using YamlDotNet.Serialization; + +namespace k8s.Models +{ + public class IntOrStringYamlConverter : IYamlTypeConverter + { + public bool Accepts(Type type) + { + return type == typeof(IntOrString); + } + + 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 = (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/Models/KubernetesEntityAttribute.cs b/src/KubernetesClient/Models/KubernetesEntityAttribute.cs new file mode 100644 index 000000000..1246d3049 --- /dev/null +++ b/src/KubernetesClient/Models/KubernetesEntityAttribute.cs @@ -0,0 +1,29 @@ +namespace k8s.Models +{ + /// + /// Describes object type in Kubernetes + /// + [AttributeUsage(AttributeTargets.Class)] + public sealed class KubernetesEntityAttribute : Attribute + { + /// + /// The Kubernetes named schema this object is based on. + /// + public string Kind { get; set; } + + /// + /// The Group this Kubernetes type belongs to. + /// + public string Group { get; set; } + + /// + /// The API Version this Kubernetes type belongs to. + /// + public string ApiVersion { get; set; } + + /// + /// The plural name of the entity. + /// + public string PluralName { get; set; } + } +} diff --git a/src/KubernetesClient/Models/KubernetesList.cs b/src/KubernetesClient/Models/KubernetesList.cs new file mode 100644 index 000000000..069c410b2 --- /dev/null +++ b/src/KubernetesClient/Models/KubernetesList.cs @@ -0,0 +1,44 @@ +namespace k8s.Models +{ + public class KubernetesList : IMetadata, IItems + where T : IKubernetesObject + { + public KubernetesList(IList items, string apiVersion = default, string kind = default, + V1ListMeta metadata = default) + { + ApiVersion = apiVersion; + Items = items; + Kind = kind; + Metadata = metadata; + } + + /// + /// Gets or 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 + /// + [JsonPropertyName("apiVersion")] + public string ApiVersion { get; set; } + + [JsonPropertyName("items")] + public IList Items { get; set; } + + /// + /// Gets or sets kind is a string value representing the REST resource + /// this object represents. Servers may infer this from the endpoint + /// the client submits requests to. Cannot be updated. In CamelCase. + /// More info: + /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + /// + [JsonPropertyName("kind")] + public string Kind { get; set; } + + /// + /// Gets or sets standard object's metadata. + /// + [JsonPropertyName("metadata")] + public V1ListMeta Metadata { get; set; } + } +} diff --git a/src/KubernetesClient/Models/ModelExtensions.cs b/src/KubernetesClient/Models/ModelExtensions.cs new file mode 100644 index 000000000..f2c6f6045 --- /dev/null +++ b/src/KubernetesClient/Models/ModelExtensions.cs @@ -0,0 +1,622 @@ +namespace k8s.Models +{ + /// Adds convenient extensions for Kubernetes objects. + public static class ModelExtensions + { + /// Adds the given finalizer to a Kubernetes object if it doesn't already exist. + /// the object meta + /// the finalizer + /// Returns true if the finalizer was added and false if it already existed. + public static bool AddFinalizer(this IMetadata obj, string finalizer) + { + if (string.IsNullOrEmpty(finalizer)) + { + throw new ArgumentNullException(nameof(finalizer)); + } + + if (EnsureMetadata(obj).Finalizers == null) + { + obj.Metadata.Finalizers = new List(); + } + + if (!obj.Metadata.Finalizers.Contains(finalizer)) + { + obj.Metadata.Finalizers.Add(finalizer); + return true; + } + + return false; + } + + /// Extracts the Kubernetes API group from the . + /// the kubernetes client + /// api group from server + public static string ApiGroup(this IKubernetesObject obj) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (obj.ApiVersion != null) + { + var slash = obj.ApiVersion.IndexOf('/'); + return slash < 0 ? string.Empty : obj.ApiVersion.Substring(0, slash); + } + + return null; + } + + /// Extracts the Kubernetes API version (excluding the group) from the . + /// the kubernetes client + /// api group version from server + public static string ApiGroupVersion(this IKubernetesObject obj) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (obj.ApiVersion != null) + { + var slash = obj.ApiVersion.IndexOf('/'); + return slash < 0 ? obj.ApiVersion : obj.ApiVersion.Substring(slash + 1); + } + + return null; + } + + /// Splits the Kubernetes API version into the group and version. + /// the kubernetes client + /// api group and version from server + public static (string, string) ApiGroupAndVersion(this IKubernetesObject obj) + { + string group, version; + GetApiGroupAndVersion(obj, out group, out version); + return (group, version); + } + + /// Splits the Kubernetes API version into the group and version. + /// the kubernetes client + /// api group output var + /// api group version output var + public static void GetApiGroupAndVersion(this IKubernetesObject obj, out string group, out string version) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (obj.ApiVersion == null) + { + group = version = null; + } + else + { + var slash = obj.ApiVersion.IndexOf('/'); + if (slash < 0) + { + (group, version) = (string.Empty, obj.ApiVersion); + } + else + { + (group, version) = (obj.ApiVersion.Substring(0, slash), obj.ApiVersion.Substring(slash + 1)); + } + } + } + + /// + /// Gets the continuation token version of a Kubernetes list. + /// + /// Kubernetes list + /// continuation token + public static string Continue(this IMetadata list) => list?.Metadata?.ContinueProperty; + + /// Ensures that the metadata field is set, and returns it. + /// the object meta + /// the metadata + public static V1ListMeta EnsureMetadata(this IMetadata obj) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (obj.Metadata == null) + { + obj.Metadata = new V1ListMeta(); + } + + return obj.Metadata; + } + + /// Gets the resource version of a Kubernetes list. + /// the object meta list + /// resource version + public static string ResourceVersion(this IMetadata list) => list?.Metadata?.ResourceVersion; + + /// Adds an owner reference to the object. No attempt is made to ensure the reference is correct or fits with the + /// other references. + /// + /// the object meta + /// the owner reference to the object + public static void AddOwnerReference(this IMetadata obj, V1OwnerReference ownerRef) + { + if (ownerRef == null) + { + throw new ArgumentNullException(nameof(ownerRef)); + } + + if (EnsureMetadata(obj).OwnerReferences == null) + { + obj.Metadata.OwnerReferences = new List(); + } + + obj.Metadata.OwnerReferences.Add(ownerRef); + } + + /// Gets the annotations of a Kubernetes object. + /// the object meta + /// a dictionary of the annotations + public static IDictionary Annotations(this IMetadata obj) => + obj?.Metadata?.Annotations; + + /// Gets the creation time of a Kubernetes object, or null if it hasn't been created yet. + /// the object meta + /// creation time of a Kubernetes object, null if it hasn't been created yet. + public static DateTime? CreationTimestamp(this IMetadata obj) => obj?.Metadata?.CreationTimestamp; + + /// Gets the deletion time of a Kubernetes object, or null if it hasn't been scheduled for deletion. + /// the object meta + /// the deletion time of a Kubernetes object, or null if it hasn't been scheduled for deletion. + public static DateTime? DeletionTimestamp(this IMetadata obj) => obj?.Metadata?.DeletionTimestamp; + + /// Ensures that the metadata field is set, and returns it. + /// the object meta + /// the metadata field + public static V1ObjectMeta EnsureMetadata(this IMetadata obj) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (obj.Metadata == null) + { + obj.Metadata = new V1ObjectMeta(); + } + + return obj.Metadata; + } + + /// Gets the of a Kubernetes object. + /// the object meta + /// Metadata.Finalizers of + public static IList Finalizers(this IMetadata obj) => obj?.Metadata?.Finalizers; + + /// Gets the index of the that matches the given object, or -1 if no such + /// reference could be found. + /// + /// the object meta + /// the owner of the object + /// 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, IKubernetesObject owner) => + FindOwnerReference(obj, r => r.Matches(owner)); + + /// Gets the index of the that matches the given predicate, or -1 if no such + /// reference could be found. + /// + /// the object meta + /// 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) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (predicate == null) + { + throw new ArgumentNullException(nameof(predicate)); + } + + var ownerRefs = obj.OwnerReferences(); + if (ownerRefs != null) + { + for (var i = 0; i < ownerRefs.Count; i++) + { + if (predicate(ownerRefs[i])) + { + return i; + } + } + } + + return -1; + } + + /// Gets the generation a Kubernetes object. + /// the object meta + /// the Metadata.Generation of object meta + public static long? Generation(this IMetadata obj) => obj?.Metadata?.Generation; + + /// Returns the given annotation from a Kubernetes object or null if the annotation was not found. + /// the object meta + /// the key of the annotation + /// the content of the annotation + public static string GetAnnotation(this IMetadata obj, string key) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (key == null) + { + throw new ArgumentNullException(nameof(key)); + } + + var annotations = obj.Annotations(); + return annotations != null && annotations.TryGetValue(key, out var value) ? value : null; + } + + /// Gets the for the controller of this object, or null if it couldn't be found. + /// the object meta + /// the for the controller of this object, or null if it couldn't be found. + public static V1OwnerReference GetController(this IMetadata obj) => + obj.OwnerReferences()?.FirstOrDefault(r => r.Controller.GetValueOrDefault()); + + /// Returns the given label from a Kubernetes object or null if the label was not found. + /// the object meta + /// the key of the label + /// content of the label + public static string GetLabel(this IMetadata obj, string key) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (key == null) + { + throw new ArgumentNullException(nameof(key)); + } + + var labels = obj.Labels(); + return labels != null && labels.TryGetValue(key, out var value) ? value : null; + } + + /// Gets that matches the given object, or null if no matching reference exists. + /// the object meta + /// the owner of the object + /// the that matches the given object, or null if no matching reference exists. + public static V1OwnerReference GetOwnerReference( + this IMetadata obj, + IKubernetesObject owner) => + GetOwnerReference(obj, r => r.Matches(owner)); + + /// Gets the that matches the given predicate, or null if no matching reference exists. + /// the object meta + /// 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, + Predicate predicate) + { + var index = FindOwnerReference(obj, predicate); + return index >= 0 ? obj.Metadata.OwnerReferences[index] : null; + } + + /// Determines whether the Kubernetes object has the given finalizer. + /// the object meta + /// the finalizer + /// true if object has the finalizer + public static bool HasFinalizer(this IMetadata obj, string finalizer) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (string.IsNullOrEmpty(finalizer)) + { + throw new ArgumentNullException(nameof(finalizer)); + } + + return obj.Finalizers() != null && obj.Metadata.Finalizers.Contains(finalizer); + } + + /// Determines whether one object is owned by another. + /// the object meta + /// the owner of the object + /// true if owned by obj + public static bool IsOwnedBy(this IMetadata obj, IKubernetesObject owner) => + FindOwnerReference(obj, owner) >= 0; + + /// Gets the labels of a Kubernetes object. + /// the object meta + /// labels of the object in a Dictionary + public static IDictionary Labels(this IMetadata obj) => obj?.Metadata?.Labels; + + /// Gets the name of a Kubernetes object. + /// the object meta + /// the name of the Kubernetes object + public static string Name(this IMetadata obj) => obj?.Metadata?.Name; + + /// Gets the namespace of a Kubernetes object. + /// the object meta + /// the namespace of the Kubernetes object + public static string Namespace(this IMetadata obj) => obj?.Metadata?.NamespaceProperty; + + /// Gets the owner references of a Kubernetes object. + /// the object meta + /// all owner reference in a list of the Kubernetes object + public static IList OwnerReferences(this IMetadata obj) => + obj?.Metadata?.OwnerReferences; + + /// Removes the given finalizer from a Kubernetes object if it exists. + /// the object meta + /// the finalizer + /// Returns true if the finalizer was removed and false if it didn't exist. + public static bool RemoveFinalizer(this IMetadata obj, string finalizer) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (string.IsNullOrEmpty(finalizer)) + { + throw new ArgumentNullException(nameof(finalizer)); + } + + return obj.Finalizers() != null && obj.Metadata.Finalizers.Remove(finalizer); + } + + /// Removes the first that matches the given object and returns it, or returns null if no + /// matching reference could be found. + /// + /// the object meta + /// the owner of the object + /// the first that matches the given object + public static V1OwnerReference RemoveOwnerReference( + this IMetadata obj, + IKubernetesObject owner) + { + var index = FindOwnerReference(obj, owner); + var ownerRef = index >= 0 ? obj?.Metadata.OwnerReferences[index] : null; + if (index >= 0) + { + obj?.Metadata.OwnerReferences.RemoveAt(index); + } + + return ownerRef; + } + + /// Removes all owner references that match the given predicate, and returns true if + /// any were removed. + /// + /// the object meta + /// a to test owner reference + /// true if any were removed + public static bool RemoveOwnerReferences( + this IMetadata obj, + Predicate predicate) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (predicate == null) + { + throw new ArgumentNullException(nameof(predicate)); + } + + var removed = false; + var refs = obj.Metadata?.OwnerReferences; + if (refs != null) + { + for (var i = refs.Count - 1; i >= 0; i--) + { + if (predicate(refs[i])) + { + refs.RemoveAt(i); + removed = true; + } + } + } + + return removed; + } + + /// Removes all owner references that match the given object, and returns true if + /// any were removed. + /// + /// the object meta + /// the owner of the object + /// true if any were removed + public static bool RemoveOwnerReferences( + this IMetadata obj, + IKubernetesObject owner) => + RemoveOwnerReferences(obj, r => r.Matches(owner)); + + /// Gets the resource version of a Kubernetes object. + /// the object meta + /// the resource version of a Kubernetes object + public static string ResourceVersion(this IMetadata obj) => obj?.Metadata?.ResourceVersion; + + /// Sets or removes an annotation on a Kubernetes object. + /// the object meta + /// the key of the annotation + /// the value of the annotation, null to remove it + public static void SetAnnotation(this IMetadata obj, string key, string value) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (key == null) + { + throw new ArgumentNullException(nameof(key)); + } + + if (value != null) + { + obj.EnsureMetadata().EnsureAnnotations()[key] = value; + } + else + { + obj.Metadata?.Annotations?.Remove(key); + } + } + + /// Sets or removes a label on a Kubernetes object. + /// the object meta + /// the key of the label + /// the value of the label, null to remove it + public static void SetLabel(this IMetadata obj, string key, string value) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + if (key == null) + { + throw new ArgumentNullException(nameof(key)); + } + + if (value != null) + { + obj.EnsureMetadata().EnsureLabels()[key] = value; + } + else + { + obj.Metadata?.Labels?.Remove(key); + } + } + + /// Gets the unique ID of a Kubernetes object. + /// the object meta + /// the unique ID of a Kubernetes object + public static string Uid(this IMetadata obj) => obj?.Metadata?.Uid; + + /// Ensures that the field is not null, and returns it. + /// the object meta + /// the annotations in a Dictionary + public static IDictionary EnsureAnnotations(this V1ObjectMeta meta) + { + if (meta == null) + { + throw new ArgumentNullException(nameof(meta)); + } + + if (meta.Annotations == null) + { + meta.Annotations = new Dictionary(); + } + + return meta.Annotations; + } + + /// Ensures that the field is not null, and returns it. + /// the object meta + /// the list of finalizers + public static IList EnsureFinalizers(this V1ObjectMeta meta) + { + if (meta == null) + { + throw new ArgumentNullException(nameof(meta)); + } + + if (meta.Finalizers == null) + { + meta.Finalizers = new List(); + } + + return meta.Finalizers; + } + + /// Ensures that the field is not null, and returns it. + /// the object meta + /// the dictionary of labels + public static IDictionary EnsureLabels(this V1ObjectMeta meta) + { + if (meta == null) + { + throw new ArgumentNullException(nameof(meta)); + } + + if (meta.Labels == null) + { + meta.Labels = new Dictionary(); + } + + return meta.Labels; + } + + /// Gets the namespace from Kubernetes metadata. + /// the object meta + /// the namespace from Kubernetes metadata + public static string Namespace(this V1ObjectMeta meta) => meta?.NamespaceProperty; + + /// Sets the namespace from Kubernetes metadata. + /// the object meta + /// the namespace + public static void SetNamespace(this V1ObjectMeta meta, string ns) + { + if (meta == null) + { + throw new ArgumentNullException(nameof(meta)); + } + + meta.NamespaceProperty = ns; + } + + /// Determines whether an object reference references the given object. + /// the object reference + /// the object meta + /// true if the object reference references the given object. + public static bool Matches(this V1ObjectReference objref, IKubernetesObject obj) + { + if (objref == null) + { + throw new ArgumentNullException(nameof(objref)); + } + + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + return objref.ApiVersion == obj.ApiVersion && objref.Kind == obj.Kind && objref.Name == obj.Name() && + objref.Uid == obj.Uid() && + objref.NamespaceProperty == obj.Namespace(); + } + + /// Determines whether an owner reference references the given object. + /// the object reference + /// the object meta + /// true if the owner reference references the given object + public static bool Matches(this V1OwnerReference owner, IKubernetesObject obj) + { + if (owner == null) + { + throw new ArgumentNullException(nameof(owner)); + } + + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + return owner.ApiVersion == obj.ApiVersion && owner.Kind == obj.Kind && owner.Name == obj.Name() && + owner.Uid == obj.Uid(); + } + } +} diff --git a/src/KubernetesClient/Models/NodeMetrics.cs b/src/KubernetesClient/Models/NodeMetrics.cs new file mode 100644 index 000000000..9080da920 --- /dev/null +++ b/src/KubernetesClient/Models/NodeMetrics.cs @@ -0,0 +1,32 @@ +namespace k8s.Models +{ + /// + /// Describes the resource usage metrics of a node pull from metrics server API. + /// + public class NodeMetrics : IMetadata + { + /// + /// The kubernetes standard object's metadata. + /// + [JsonPropertyName("metadata")] + public V1ObjectMeta Metadata { get; set; } + + /// + /// The timestamp when metrics were collected. + /// + [JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The interval from which metrics were collected. + /// + [JsonPropertyName("window")] + public string Window { get; set; } + + /// + /// The resource usage. + /// + [JsonPropertyName("usage")] + public IDictionary Usage { get; set; } + } +} diff --git a/src/KubernetesClient/Models/NodeMetricsList.cs b/src/KubernetesClient/Models/NodeMetricsList.cs new file mode 100644 index 000000000..846f6f7bf --- /dev/null +++ b/src/KubernetesClient/Models/NodeMetricsList.cs @@ -0,0 +1,29 @@ +namespace k8s.Models +{ + public class NodeMetricsList : IMetadata + { + /// + /// Defines the versioned schema of this representation of an object. + /// + [JsonPropertyName("apiVersion")] + public string ApiVersion { get; set; } + + /// + /// Defines the REST resource this object represents. + /// + [JsonPropertyName("kind")] + public string Kind { get; set; } + + /// + /// The kubernetes standard object's metadata. + /// + [JsonPropertyName("metadata")] + public V1ObjectMeta Metadata { get; set; } + + /// + /// The list of node metrics. + /// + [JsonPropertyName("items")] + public IEnumerable Items { get; set; } + } +} diff --git a/src/KubernetesClient/Models/PodMetrics.cs b/src/KubernetesClient/Models/PodMetrics.cs new file mode 100644 index 000000000..c58af4585 --- /dev/null +++ b/src/KubernetesClient/Models/PodMetrics.cs @@ -0,0 +1,32 @@ +namespace k8s.Models +{ + /// + /// Describes the resource usage metrics of a pod pull from metrics server API. + /// + public class PodMetrics : IMetadata + { + /// + /// The kubernetes standard object's metadata. + /// + [JsonPropertyName("metadata")] + public V1ObjectMeta Metadata { get; set; } + + /// + /// The timestamp when metrics were collected. + /// + [JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The interval from which metrics were collected. + /// + [JsonPropertyName("window")] + public string Window { get; set; } + + /// + /// The list of containers metrics. + /// + [JsonPropertyName("containers")] + public List Containers { get; set; } + } +} diff --git a/src/KubernetesClient/Models/PodMetricsList.cs b/src/KubernetesClient/Models/PodMetricsList.cs new file mode 100644 index 000000000..940b1ed9e --- /dev/null +++ b/src/KubernetesClient/Models/PodMetricsList.cs @@ -0,0 +1,29 @@ +namespace k8s.Models +{ + public class PodMetricsList : IMetadata + { + /// + /// Defines the versioned schema of this representation of an object. + /// + [JsonPropertyName("apiVersion")] + public string ApiVersion { get; set; } + + /// + /// Defines the REST resource this object represents. + /// + [JsonPropertyName("kind")] + public string Kind { get; set; } + + /// + /// The kubernetes standard object's metadata. + /// + [JsonPropertyName("metadata")] + public V1ObjectMeta Metadata { get; set; } + + /// + /// The list of pod metrics. + /// + [JsonPropertyName("items")] + public IEnumerable Items { get; set; } + } +} diff --git a/src/KubernetesClient/Models/ResourceQuantity.cs b/src/KubernetesClient/Models/ResourceQuantity.cs new file mode 100644 index 000000000..eee89c678 --- /dev/null +++ b/src/KubernetesClient/Models/ResourceQuantity.cs @@ -0,0 +1,403 @@ +using Fractions; +using System.Globalization; +using System.Numerics; + +namespace k8s.Models +{ + /// + /// port https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go to c# + /// Quantity is a fixed-point representation of a number. + /// It provides convenient marshaling/unmarshaling in JSON and YAML, + /// in addition to String() and Int64() 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 | digitdigits + /// number ::= digits | digits.digits | digits. | .digits + /// sign ::= "+" | "-" + /// signedNumber ::= number | signnumber + /// 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: We reserve the right to amend this canonical format, perhaps to + /// allow 1.5 to be canonical. + /// TODO: Remove above disclaimer after all bikeshedding about format is over, + /// or after March 2015. + /// 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. + /// + [JsonConverter(typeof(ResourceQuantityJsonConverter))] + public class ResourceQuantity + { + public enum SuffixFormat + { + /// + /// e.g., 12e6 + /// + DecimalExponent, + + /// + /// e.g., 12Mi (12 * 2^20) + /// + BinarySI, + + /// + /// e.g., 12M (12 * 10^6) + /// + DecimalSI, + } + + public static readonly decimal MaxAllowed = (decimal)BigInteger.Pow(2, 63) - 1; + + private static readonly char[] SuffixChars = "eEinumkKMGTP".ToCharArray(); + private Fraction _unitlessValue; + + public ResourceQuantity(decimal n, int exp, SuffixFormat format) + { + _unitlessValue = Fraction.FromDecimal(n) * Fraction.Pow(10, exp); + Format = format; + } + + public SuffixFormat Format { get; private set; } + + public string CanonicalizeString() + { + return CanonicalizeString(Format); + } + + public override string ToString() + { + return CanonicalizeString(); + } + + // + // CanonicalizeString = go version CanonicalizeBytes + // CanonicalizeBytes returns the canonical form of q and its suffix (see comment on Quantity). + // + // Note about BinarySI: + // * If q.Format is set to BinarySI and q.Amount represents a non-zero value between + // -1 and +1, it will be emitted as if q.Format were DecimalSI. + // * Otherwise, if q.Format is set to BinarySI, fractional parts of q.Amount will be + // rounded up. (1.1i becomes 2i.) + public string CanonicalizeString(SuffixFormat suffixFormat) + { + if (suffixFormat == SuffixFormat.BinarySI) + { + if (_unitlessValue > -1024 && _unitlessValue < 1024) + { + return Suffixer.AppendMaxSuffix(_unitlessValue, SuffixFormat.DecimalSI); + } + + if (HasMantissa(_unitlessValue)) + { + return Suffixer.AppendMaxSuffix(_unitlessValue, SuffixFormat.DecimalSI); + } + } + + return Suffixer.AppendMaxSuffix(_unitlessValue, suffixFormat); + } + + public ResourceQuantity(string v) + { + if (v == null) + { + // No value has been defined, initialize to 0. + _unitlessValue = new Fraction(0); + Format = SuffixFormat.BinarySI; + return; + } + + var value = v.Trim(); + + var si = value.IndexOfAny(SuffixChars); + if (si == -1) + { + si = value.Length; + } + + var literal = Fraction.FromString(value.Substring(0, si), CultureInfo.InvariantCulture); + var suffixer = new Suffixer(value.Substring(si)); + + _unitlessValue = literal.Multiply(Fraction.Pow(suffixer.Base, suffixer.Exponent)); + Format = suffixer.Format; + + if (Format == SuffixFormat.BinarySI && _unitlessValue > Fraction.FromDecimal(MaxAllowed)) + { + _unitlessValue = Fraction.FromDecimal(MaxAllowed); + } + } + + public static implicit operator ResourceQuantity(string v) + { + return new ResourceQuantity(v); + } + + private static bool HasMantissa(Fraction value) + { + if (value.IsZero) + { + return false; + } + + return BigInteger.Remainder(value.Numerator, value.Denominator) > 0; + } + + public static implicit operator decimal(ResourceQuantity v) + { + 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)) + { + return false; + } + + if (ReferenceEquals(this, other)) + { + return true; + } + + return _unitlessValue.Equals(other._unitlessValue); + } + + public override bool Equals(object obj) + { + return Equals(obj as ResourceQuantity); + } + + public override int GetHashCode() + { + return _unitlessValue.GetHashCode(); + } + + public static bool operator ==(ResourceQuantity left, ResourceQuantity right) + { + if (left is null) + { + return right is null; + } + + return left.Equals(right); + } + + public static bool operator !=(ResourceQuantity left, ResourceQuantity right) + { + return !(left == right); + } + + private sealed class Suffixer + { + private static readonly IReadOnlyDictionary BinSuffixes = + new Dictionary + { + // Don't emit an error when trying to produce + // a suffix for 2^0. + { "", (2, 0) }, + { "Ki", (2, 10) }, + { "Mi", (2, 20) }, + { "Gi", (2, 30) }, + { "Ti", (2, 40) }, + { "Pi", (2, 50) }, + { "Ei", (2, 60) }, + }; + + private static readonly IReadOnlyDictionary DecSuffixes = + new Dictionary + { + { "n", (10, -9) }, + { "u", (10, -6) }, + { "m", (10, -3) }, + { "", (10, 0) }, + { "k", (10, 3) }, + { "M", (10, 6) }, + { "G", (10, 9) }, + { "T", (10, 12) }, + { "P", (10, 15) }, + { "E", (10, 18) }, + }; + + public Suffixer(string suffix) + { + // looked up + { + if (DecSuffixes.TryGetValue(suffix, out var be)) + { + (Base, Exponent) = be; + Format = SuffixFormat.DecimalSI; + + return; + } + } + + { + if (BinSuffixes.TryGetValue(suffix, out var be)) + { + (Base, Exponent) = be; + Format = SuffixFormat.BinarySI; + + return; + } + } + + if (char.ToLower(suffix[0]) == 'e') + { + Base = 10; + Exponent = int.Parse(suffix.Substring(1)); + Format = SuffixFormat.DecimalExponent; + return; + } + + throw new ArgumentException("unable to parse quantity's suffix"); + } + + public SuffixFormat Format { get; } + + public int Base { get; } + public int Exponent { get; } + + public static string AppendMaxSuffix(Fraction value, SuffixFormat format) + { + if (value.IsZero) + { + return "0"; + } + + switch (format) + { + case SuffixFormat.DecimalExponent: + { + var minE = -9; + var lastv = Roundup(value * Fraction.Pow(10, -minE)); + + for (var exp = minE; ; exp += 3) + { + var v = value * Fraction.Pow(10, -exp); + if (HasMantissa(v)) + { + break; + } + + minE = exp; + lastv = v; + } + + if (minE == 0) + { + return $"{(decimal)lastv}"; + } + + return $"{(decimal)lastv}e{minE}"; + } + + case SuffixFormat.BinarySI: + return AppendMaxSuffix(value, BinSuffixes); + case SuffixFormat.DecimalSI: + return AppendMaxSuffix(value, DecSuffixes); + default: + throw new ArgumentOutOfRangeException(nameof(format), format, null); + } + } + + private static string AppendMaxSuffix(Fraction value, IReadOnlyDictionary suffixes) + { + var min = suffixes.First(); + var suffix = min.Key; + var lastv = Roundup(value * Fraction.Pow(min.Value.Item1, -min.Value.Item2)); + + foreach (var kv in suffixes.Skip(1)) + { + var v = value * Fraction.Pow(kv.Value.Item1, -kv.Value.Item2); + if (HasMantissa(v)) + { + break; + } + + suffix = kv.Key; + lastv = v; + } + + return $"{(decimal)lastv}{suffix}"; + } + + private static Fraction Roundup(Fraction lastv) + { + var round = BigInteger.DivRem(lastv.Numerator, lastv.Denominator, out var remainder); + if (!remainder.IsZero) + { + lastv = round + 1; + } + + return lastv; + } + } + + public int ToInt32() + { + return _unitlessValue.ToInt32(); + } + + public long ToInt64() + { + return _unitlessValue.ToInt64(); + } + + public uint ToUInt32() + { + return _unitlessValue.ToUInt32(); + } + + public ulong ToUInt64() + { + return _unitlessValue.ToUInt64(); + } + + public BigInteger ToBigInteger() + { + return _unitlessValue.ToBigInteger(); + } + + public decimal ToDecimal() + { + return _unitlessValue.ToDecimal(); + } + + public double ToDouble() + { + return _unitlessValue.ToDouble(); + } + } +} 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/Models/V1Patch.cs b/src/KubernetesClient/Models/V1Patch.cs new file mode 100644 index 000000000..5838e4b05 --- /dev/null +++ b/src/KubernetesClient/Models/V1Patch.cs @@ -0,0 +1,51 @@ +namespace k8s.Models +{ + [JsonConverter(typeof(V1PatchJsonConverter))] + public record V1Patch + { + public enum PatchType + { + /// + /// not set, this is not allowed + /// + Unknown, + + /// + /// content type application/json-patch+json + /// + JsonPatch, + + /// + /// content type application/merge-patch+json + /// + MergePatch, + + /// + /// content type application/strategic-merge-patch+json + /// + StrategicMergePatch, + + /// + /// content type application/apply-patch+yaml + /// + ApplyPatch, + } + + [JsonPropertyName("content")] + [JsonInclude] + public object Content { get; private set; } + + public PatchType Type { get; private set; } + + public V1Patch(object body, PatchType 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/Models/V1Status.cs b/src/KubernetesClient/Models/V1Status.cs new file mode 100644 index 000000000..d69116d2e --- /dev/null +++ b/src/KubernetesClient/Models/V1Status.cs @@ -0,0 +1,21 @@ +using System.Net; + +namespace k8s.Models +{ + public partial record V1Status + { + /// Converts a object into a short description of the status. + /// string description of the status + public override string ToString() + { + var reason = Reason; + if (string.IsNullOrEmpty(reason) && Code.GetValueOrDefault() != 0) + { + reason = ((HttpStatusCode)Code.Value).ToString(); + } + + return string.IsNullOrEmpty(Message) ? string.IsNullOrEmpty(reason) ? Status : reason : + string.IsNullOrEmpty(reason) ? Message : $"{reason} - {Message}"; + } + } +} diff --git a/src/KubernetesClient/MuxedStream.cs b/src/KubernetesClient/MuxedStream.cs new file mode 100644 index 000000000..17edc1f0e --- /dev/null +++ b/src/KubernetesClient/MuxedStream.cs @@ -0,0 +1,104 @@ +namespace k8s +{ + /// + /// A which reads/writes from a specific channel using a . + /// + public class MuxedStream : Stream + { + private readonly ByteBuffer inputBuffer; + private readonly byte? outputIndex; + private readonly StreamDemuxer muxer; + + /// + /// Initializes a new instance of the class. + /// + /// + /// The to use to read from/write to the underlying stream. + /// + /// + /// The to read from. + /// + /// + /// The index of the channel to which to write. + /// + public MuxedStream(StreamDemuxer muxer, ByteBuffer inputBuffer, byte? outputIndex) + { + this.inputBuffer = inputBuffer; + this.outputIndex = outputIndex; + + if (this.inputBuffer == null && outputIndex == null) + { + throw new ArgumentException("You must specify at least inputBuffer or outputIndex"); + } + + if (outputIndex != null) + { + this.muxer = muxer ?? throw new ArgumentNullException(nameof(muxer)); + } + } + + /// + public override bool CanRead => inputBuffer != null; + + /// + public override bool CanSeek => false; + + /// + public override bool CanWrite => outputIndex != null; + + /// + public override long Length => throw new NotSupportedException(); + + /// + public override long Position + { + get => throw new NotSupportedException(); + set => throw new NotSupportedException(); + } + + /// + public override void Write(byte[] buffer, int offset, int count) + { + if (outputIndex == null) + { + throw new InvalidOperationException(); + } + else + { + muxer.Write(outputIndex.Value, buffer, offset, count).GetAwaiter().GetResult(); + } + } + + /// + public override int Read(byte[] buffer, int offset, int count) + { + if (inputBuffer == null) + { + throw new InvalidOperationException(); + } + else + { + return inputBuffer.Read(buffer, offset, count); + } + } + + /// + public override void Flush() + { + // Whenever we call muxer.Write, a message is immediately sent over the wire, so we don't need/support flushing. + // Implement flushing as a no-op operation as opposed to throwing a NotSupportedException. + } + + /// + public override long Seek(long offset, SeekOrigin origin) + { + throw new NotSupportedException(); + } + + /// + public override void SetLength(long value) + { + throw new NotSupportedException(); + } + } +} diff --git a/src/KubernetesClient/PrometheusHandler.cs b/src/KubernetesClient/PrometheusHandler.cs new file mode 100644 index 000000000..7b7bd5461 --- /dev/null +++ b/src/KubernetesClient/PrometheusHandler.cs @@ -0,0 +1,79 @@ +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/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 new file mode 100644 index 000000000..30263b9eb --- /dev/null +++ b/src/KubernetesClient/StreamDemuxer.cs @@ -0,0 +1,304 @@ +using System.Buffers; +using System.Diagnostics; +using System.Net.WebSockets; + +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. + /// + /// + /// 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(); + private readonly StreamType streamType; + private readonly bool ownsSocket; + private Task runLoop; + private bool disposedValue; + + /// + /// Initializes a new instance of the class. + /// + /// + /// A which contains a multiplexed stream, such as the returned by the exec or attach commands. + /// + /// + /// A specifies the type of the stream. + /// + /// + /// A value indicating whether this instance of the owns the underlying , + /// and should dispose of it when this instance is disposed of. + /// + public StreamDemuxer(WebSocket webSocket, StreamType streamType = StreamType.RemoteCommand, + bool ownsSocket = false) + { + this.streamType = streamType; + this.webSocket = webSocket ?? throw new ArgumentNullException(nameof(webSocket)); + this.ownsSocket = ownsSocket; + } + + public event EventHandler ConnectionClosed; + + /// + /// Starts reading the data sent by the server. + /// + public void Start() + { + runLoop = Task.Run(async () => await RunLoop(cts.Token).ConfigureAwait(false)); + } + + + /// + /// Gets a which allows you to read to and/or write from a remote channel. + /// + /// + /// The index of the channel from which to read. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// A which allows you to read/write to the requested channels. + /// + public Stream GetStream(ChannelIndex? inputIndex, ChannelIndex? outputIndex) + { + return GetStream((byte?)inputIndex, (byte?)outputIndex); + } + + /// + /// Gets a which allows you to read to and/or write from a remote channel. + /// + /// + /// The index of the channel from which to read. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// A which allows you to read/write to the requested channels. + /// + public Stream GetStream(byte? inputIndex, byte? outputIndex) + { + lock (buffers) + { + if (inputIndex != null && !buffers.ContainsKey(inputIndex.Value)) + { + var buffer = new ByteBuffer(); + buffers.Add(inputIndex.Value, buffer); + } + } + + var inputBuffer = inputIndex == null ? null : buffers[inputIndex.Value]; + return new MuxedStream(this, inputBuffer, outputIndex); + } + + /// + /// Directly writes data to a channel. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// The buffer from which to read data. + /// + /// + /// The offset at which to start reading. + /// + /// + /// The number of bytes to read. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + /// + /// A which represents the asynchronous operation. + /// + public Task Write(ChannelIndex index, byte[] buffer, int offset, int count, + CancellationToken cancellationToken = default) + { + return Write((byte)index, buffer, offset, count, cancellationToken); + } + + /// + /// Directly writes data to a channel. + /// + /// + /// The index of the channel to which to write. + /// + /// + /// The buffer from which to read data. + /// + /// + /// The offset at which to start reading. + /// + /// + /// The number of bytes to read. + /// + /// + /// A which can be used to cancel the asynchronous operation. + /// + /// + /// A which represents the asynchronous operation. + /// + public async Task Write(byte index, byte[] buffer, int offset, int count, + CancellationToken cancellationToken = default) + { + var writeBuffer = ArrayPool.Shared.Rent(Math.Min(count, MAXFRAMESIZE) + 1); + + try + { + 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 + { + ArrayPool.Shared.Return(writeBuffer); + } + } + + protected async Task RunLoop(CancellationToken cancellationToken) + { + // Get a 1KB buffer + var buffer = ArrayPool.Shared.Rent(1024 * 1024); + // This maps remembers bytes skipped for each stream. + var streamBytesToSkipMap = new Dictionary(); + try + { + var segment = new ArraySegment(buffer); + + while (!cancellationToken.IsCancellationRequested && webSocket.CloseStatus == null) + { + // We always get data in this format: + // [stream index] (1 for stdout, 2 for stderr) + // [payload] + var result = await webSocket.ReceiveAsync(segment, cancellationToken).ConfigureAwait(false); + + // Ignore empty messages + if (result.Count < 2) + { + continue; + } + + var streamIndex = buffer[0]; + var extraByteCount = 1; + + while (true) + { + var bytesToSkip = 0; + if (!streamBytesToSkipMap.TryGetValue(streamIndex, out bytesToSkip)) + { + // When used in port-forwarding, the first 2 bytes from the web socket is port bytes, skip. + // https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/server/portforward/websocket.go + bytesToSkip = streamType == StreamType.PortForward ? 2 : 0; + } + + var bytesCount = result.Count - extraByteCount; + if (bytesToSkip > 0 && bytesToSkip >= bytesCount) + { + // skip the entire data. + bytesToSkip -= bytesCount; + extraByteCount += bytesCount; + bytesCount = 0; + } + else + { + bytesCount -= bytesToSkip; + extraByteCount += bytesToSkip; + bytesToSkip = 0; + + if (buffers.ContainsKey(streamIndex)) + { + buffers[streamIndex].Write(buffer, extraByteCount, bytesCount); + } + } + + streamBytesToSkipMap[streamIndex] = bytesToSkip; + + if (result.EndOfMessage == true) + { + break; + } + + extraByteCount = 0; + result = await webSocket.ReceiveAsync(segment, cancellationToken).ConfigureAwait(false); + } + } + } + finally + { + ArrayPool.Shared.Return(buffer); + runLoop = null; + + foreach (var b in buffers.Values) + { + b.WriteEnd(); + } + + ConnectionClosed?.Invoke(this, EventArgs.Empty); + } + } + + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + try + { + if (runLoop != null) + { + cts.Cancel(); + cts.Dispose(); + runLoop.Wait(); + } + } + catch (Exception ex) + { + // Dispose methods can never throw. + Debug.Write(ex); + } + + if (ownsSocket) + { + webSocket.Dispose(); + } + } + + disposedValue = true; + } + } + + // // TODO: override finalizer only if 'Dispose(bool disposing)' has code to free unmanaged resources + // ~StreamDemuxer() + // { + // // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method + // Dispose(disposing: false); + // } + + public void Dispose() + { + // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method + Dispose(true); + GC.SuppressFinalize(this); + } + } +} diff --git a/src/KubernetesClient/StreamType.cs b/src/KubernetesClient/StreamType.cs new file mode 100644 index 000000000..983b171a1 --- /dev/null +++ b/src/KubernetesClient/StreamType.cs @@ -0,0 +1,20 @@ +namespace k8s +{ + /// + /// When creating a object, specify to properly handle + /// the underlying communication. + /// + public enum StreamType + { + /// + /// This object is used to stream a remote command or attach to a remote + /// container. + /// + RemoteCommand, + + /// + /// This object is used in port forwarding. + /// + PortForward, + } +} diff --git a/src/KubernetesClient/StringQuotingEmitter.cs b/src/KubernetesClient/StringQuotingEmitter.cs new file mode 100644 index 000000000..550412358 --- /dev/null +++ b/src/KubernetesClient/StringQuotingEmitter.cs @@ -0,0 +1,52 @@ +using System.Text.RegularExpressions; +using YamlDotNet.Core; +using YamlDotNet.Serialization; +using YamlDotNet.Serialization.EventEmitters; + +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 and https://yaml.org/type/bool.html (spec v1.1) + private static readonly Regex QuotedRegex = + 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) + { + } + + /// + public override void Emit(ScalarEventInfo eventInfo, IEmitter emitter) + { + var typeCode = eventInfo?.Source.Value != null + ? Type.GetTypeCode(eventInfo.Source.Type) + : TypeCode.Empty; + switch (typeCode) + { + case TypeCode.Char: + if (char.IsDigit((char)eventInfo.Source.Value)) + { + eventInfo.Style = ScalarStyle.DoubleQuoted; + } + + break; + case TypeCode.String: + var val = eventInfo.Source.Value.ToString(); + if (QuotedRegex.IsMatch(val)) + { + eventInfo.Style = ScalarStyle.DoubleQuoted; + } + else if (val.IndexOf('\n') > -1) + { + eventInfo.Style = ScalarStyle.Literal; + } + + break; + } + + base.Emit(eventInfo, emitter); + } + } +} diff --git a/src/KubernetesClient/Utilities.cs b/src/KubernetesClient/Utilities.cs new file mode 100644 index 000000000..8356bc65a --- /dev/null +++ b/src/KubernetesClient/Utilities.cs @@ -0,0 +1,26 @@ +using System.Text; + +namespace k8s +{ + internal static class Utilities + { + internal static void AddQueryParameter(StringBuilder sb, string key, string value) + { + if (sb == null) + { + throw new ArgumentNullException(nameof(sb)); + } + + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + + sb.Append(sb.Length != 0 ? '&' : '?').Append(Uri.EscapeDataString(key)).Append('='); + if (!string.IsNullOrEmpty(value)) + { + sb.Append(Uri.EscapeDataString(value)); + } + } + } +} diff --git a/src/KubernetesClient/Watcher.cs b/src/KubernetesClient/Watcher.cs new file mode 100644 index 000000000..23868d4e0 --- /dev/null +++ b/src/KubernetesClient/Watcher.cs @@ -0,0 +1,245 @@ +using System.Runtime.CompilerServices; +using System.Runtime.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. + [EnumMember(Value = "ADDED")] + Added, + + /// Emitted when an object is modified. + [EnumMember(Value = "MODIFIED")] + Modified, + + /// Emitted when an object is deleted or modified to no longer match a watch's filter. + [EnumMember(Value = "DELETED")] + Deleted, + + /// Emitted when an error occurs while watching resources. Most commonly, the error is 410 Gone which indicates that + /// the watch resource version was outdated and events were probably lost. In that case, the watch should be restarted. + /// + [EnumMember(Value = "ERROR")] + Error, + + /// Bookmarks may be emitted periodically to update the resource version. The object will + /// contain only the resource version. + /// + [EnumMember(Value = "BOOKMARK")] + Bookmark, + } + + public class Watcher : IDisposable + { + /// + /// indicate if the watch object is alive + /// + public bool Watching { get; private set; } + + private readonly CancellationTokenSource _cts; + 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; + + + /// + /// Initializes a new instance of the class. + /// + /// + /// A from which to read the events. + /// + /// + /// 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. + /// + public Watcher(Func> streamReaderCreator, Action onEvent, + Action onError, Action onClosed = null) + : this( + async () => (TextReader)await streamReaderCreator().ConfigureAwait(false), + onEvent, onError, onClosed) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + /// A from which to read the events. + /// + /// + /// 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. + /// + public Watcher(Func> streamReaderCreator, Action onEvent, + Action onError, Action onClosed = null) + { + _streamReaderCreator = streamReaderCreator; + OnEvent += onEvent; + OnError += onError; + OnClosed += onClosed; + + _cts = new CancellationTokenSource(); + _watcherLoop = Task.Run(async () => await WatcherLoop(_cts.Token).ConfigureAwait(false)); + } + + /// + /// add/remove callbacks when any event raised from api server + /// + public event Action OnEvent; + + /// + /// add/remove callbacks when any exception was caught during watching + /// + public event Action OnError; + + /// + /// The event which is raised when the server closes the connection. + /// + public event Action OnClosed; + + public class WatchEvent + { + [JsonPropertyName("type")] + public WatchEventType Type { get; set; } + + [JsonPropertyName("object")] + public T Object { get; set; } + } + + private async Task WatcherLoop(CancellationToken cancellationToken) + { + try + { + Watching = true; + + await foreach (var (t, evt) in CreateWatchEventEnumerator(_streamReaderCreator, OnError, + cancellationToken) + .ConfigureAwait(false) + ) + { + OnEvent?.Invoke(t, evt); + } + } + catch (OperationCanceledException) + { + // ignore + } + catch (Exception e) + { + // error when transport error, IOException ect + OnError?.Invoke(e); + } + finally + { + Watching = false; + OnClosed?.Invoke(); + } + } + + internal static async IAsyncEnumerable<(WatchEventType, T)> CreateWatchEventEnumerator( + Func> streamReaderCreator, + Action onError = null, + [EnumeratorCancellation] CancellationToken cancellationToken = default) + { + Task AttachCancellationToken(Task task) + { + if (!task.IsCompleted) + { + // here to pass cancellationToken into task + return task.ContinueWith(t => t.GetAwaiter().GetResult(), cancellationToken); + } + + return task; + } + + using var streamReader = await AttachCancellationToken(streamReaderCreator()).ConfigureAwait(false); + + for (; ; ) + { + // ReadLineAsync will return null when we've reached the end of the stream. + var line = await AttachCancellationToken(streamReader.ReadLineAsync()).ConfigureAwait(false); + + cancellationToken.ThrowIfCancellationRequested(); + + if (line == null) + { + yield break; + } + + WatchEvent @event = null; + + try + { + var genericEvent = KubernetesJson.Deserialize.WatchEvent>(line); + + if (genericEvent.Object.Kind == "Status") + { + var statusEvent = KubernetesJson.Deserialize.WatchEvent>(line); + var exception = new KubernetesException(statusEvent.Object); + onError?.Invoke(exception); + } + else + { + @event = KubernetesJson.Deserialize(line); + } + } + catch (Exception e) + { + onError?.Invoke(e); + } + + + if (@event != null) + { + yield return (@event.Type, @event.Object); + } + } + } + + + protected virtual void Dispose(bool disposing) + { + if (!disposedValue) + { + if (disposing) + { + _cts?.Cancel(); + _cts?.Dispose(); + } + + disposedValue = true; + } + } + + // // TODO: override finalizer only if 'Dispose(bool disposing)' has code to free unmanaged resources + // ~Watcher() + // { + // // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method + // Dispose(disposing: false); + // } + + public void Dispose() + { + // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method + Dispose(true); + GC.SuppressFinalize(this); + } + } +} diff --git a/src/KubernetesClient/WatcherExt.cs b/src/KubernetesClient/WatcherExt.cs new file mode 100644 index 000000000..28863341f --- /dev/null +++ b/src/KubernetesClient/WatcherExt.cs @@ -0,0 +1,85 @@ +using k8s.Exceptions; + +namespace k8s +{ + public static class WatcherExt + { + /// + /// create a watch object from a call to api server with watch=true + /// + /// type of the event object + /// type of the HttpOperationResponse object + /// the api response + /// a callback when any event raised from api server + /// 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, + Action onError = null, + Action onClosed = null) + { + return new Watcher(MakeStreamReaderCreator(responseTask), onEvent, onError, onClosed); + } + + private static Func> MakeStreamReaderCreator(Task> responseTask) + { + return async () => + { + var response = await responseTask.ConfigureAwait(false); + + if (!(response.Response.Content is LineSeparatedHttpContent content)) + { + throw new KubernetesClientException("not a watchable request or failed response"); + } + + return content.StreamReader; + }; + } + + /// + /// create a watch object from a call to api server with watch=true + /// + /// type of the event object + /// type of the HttpOperationResponse object + /// the api response + /// a callback when any event raised from api server + /// 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, + Action onError = null, + Action onClosed = null) + { + return Watch(Task.FromResult(response), onEvent, onError, onClosed); + } + + /// + /// create an IAsyncEnumerable from a call to api server with watch=true + /// see https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/november/csharp-iterating-with-async-enumerables-in-csharp-8 + /// + /// type of the event object + /// type of the HttpOperationResponse object + /// the api response + /// 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, + CancellationToken cancellationToken = default) + { + return Watcher.CreateWatchEventEnumerator(MakeStreamReaderCreator(responseTask), onError, cancellationToken); + } + } +} diff --git a/src/KubernetesClient/WebSocketBuilder.cs b/src/KubernetesClient/WebSocketBuilder.cs new file mode 100644 index 000000000..8acc3c5ce --- /dev/null +++ b/src/KubernetesClient/WebSocketBuilder.cs @@ -0,0 +1,63 @@ +using System.Net.WebSockets; +using System.Security.Cryptography.X509Certificates; + +namespace k8s +{ + /// + /// The creates a new object which connects to a remote WebSocket. + /// + /// + /// By default, this uses the .NET class, but you can inherit from this class and change it to + /// use any class which inherits from , should you want to use a third party framework or mock the requests. + /// + public class WebSocketBuilder + { + protected ClientWebSocket WebSocket { get; private set; } = new ClientWebSocket(); + + public WebSocketBuilder() + { + } + + public ClientWebSocketOptions Options => WebSocket.Options; + + public virtual WebSocketBuilder SetRequestHeader(string headerName, string headerValue) + { + WebSocket.Options.SetRequestHeader(headerName, headerValue); + return this; + } + + public virtual WebSocketBuilder AddClientCertificate(X509Certificate2 certificate) + { + WebSocket.Options.ClientCertificates.Add(certificate); + return this; + } + + 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; + } + + public virtual async Task BuildAndConnectAsync(Uri uri, CancellationToken cancellationToken) + { + await WebSocket.ConnectAsync(uri, cancellationToken).ConfigureAwait(false); + return WebSocket; + } + } +} diff --git a/src/KubernetesClient/WebSocketProtocol.cs b/src/KubernetesClient/WebSocketProtocol.cs new file mode 100644 index 000000000..7c5b7d01c --- /dev/null +++ b/src/KubernetesClient/WebSocketProtocol.cs @@ -0,0 +1,74 @@ +namespace k8s +{ + /// + /// Well-known WebSocket sub-protocols used by the Kubernetes API. + /// + public static class WebSocketProtocol + { + // The protocols are defined here: + // https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/server/remotecommand/websocket.go#L36 + // and here: + // https://github.com/kubernetes/kubernetes/blob/714f97d7baf4975ad3aa47735a868a81a984d1f0/staging/src/k8s.io/apiserver/pkg/util/wsstream/conn.go + // + // For a description of what's different in v4: + // https://github.com/kubernetes/kubernetes/blob/317853c90c674920bfbbdac54fe66092ddc9f15f/pkg/kubelet/server/remotecommand/httpstream.go#L203 + + /// + /// + /// The Websocket subprotocol "channel.k8s.io" prepends each binary message with a byte indicating + /// the channel number (zero indexed) the message was sent on. Messages in both directions should + /// prefix their messages with this channel byte. When used for remote execution, the channel numbers + /// are by convention defined to match the POSIX file-descriptors assigned to STDIN, STDOUT, and STDERR + /// (0, 1, and 2). No other conversion is performed on the raw subprotocol - writes are sent as they + /// are received by the server. + /// + /// + /// + /// Example client session: + /// + /// CONNECT http://server.com with subprotocol "channel.k8s.io" + /// WRITE []byte{0, 102, 111, 111, 10} # send "foo\n" on channel 0 (STDIN) + /// READ []byte{1, 10} # receive "\n" on channel 1 (STDOUT) + /// CLOSE + /// + /// + /// + public const string ChannelWebSocketProtocol = "channel.k8s.io"; + + /// + /// + /// The Websocket subprotocol "base64.channel.k8s.io" base64 encodes each message with a character + /// indicating the channel number (zero indexed) the message was sent on. Messages in both directions + /// should prefix their messages with this channel char. When used for remote execution, the channel + /// numbers are by convention defined to match the POSIX file-descriptors assigned to STDIN, STDOUT, + /// and STDERR ('0', '1', and '2'). The data received on the server is base64 decoded (and must be + /// be valid) and data written by the server to the client is base64 encoded. + /// + /// + /// + /// Example client session: + /// + /// CONNECT http://server.com with subprotocol "base64.channel.k8s.io" + /// WRITE []byte{48, 90, 109, 57, 118, 67, 103, 111, 61} # send "foo\n" (base64: "Zm9vCgo=") on channel '0' (STDIN) + /// READ []byte{49, 67, 103, 61, 61} # receive "\n" (base64: "Cg==") on channel '1' (STDOUT) + /// CLOSE + /// + /// + /// + public const string Base64ChannelWebSocketProtocol = "base64.channel.k8s.io"; + + /// + /// v4ProtocolHandler implements the V4 protocol version for streaming command execution. It only differs + /// in from v3 in the error stream format using an json-marshaled metav1.Status which carries + /// the process' exit code. + /// + public const string V4BinaryWebsocketProtocol = "v4." + ChannelWebSocketProtocol; + + /// + /// v4ProtocolHandler implements the V4 protocol version for streaming command execution. It only differs + /// in from v3 in the error stream format using an json-marshaled metav1.Status which carries + /// the process' exit code. + /// + public const string V4Base64WebsocketProtocol = "v4." + Base64ChannelWebSocketProtocol; + } +} diff --git a/src/KubernetesClientConfiguration.ConfigFile.cs b/src/KubernetesClientConfiguration.ConfigFile.cs deleted file mode 100644 index 862414db6..000000000 --- a/src/KubernetesClientConfiguration.ConfigFile.cs +++ /dev/null @@ -1,232 +0,0 @@ -using System; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; -using System.Security.Cryptography.X509Certificates; -using k8s.Exceptions; -using k8s.KubeConfigModels; -using YamlDotNet.Serialization; - -namespace k8s -{ - public partial class KubernetesClientConfiguration - { - /// - /// kubeconfig Default Location - /// - private 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; } - - /// - /// Initializes a new instance of the from config file - /// - /// kube api server endpoint - /// kubeconfig filepath - public static KubernetesClientConfiguration BuildConfigFromConfigFile(string masterUrl = null, - string kubeconfigPath = null) - { - return BuildConfigFromConfigFile(new FileInfo(kubeconfigPath ?? KubeConfigDefaultLocation), null, - masterUrl); - } - - /// - /// - /// Fileinfo of the kubeconfig, cannot be null - /// override the context in config file, set null if do not want to override - /// overrider kube api server endpoint, set null if do not want to override - public static KubernetesClientConfiguration BuildConfigFromConfigFile(FileInfo kubeconfig, - string currentContext = null, string masterUrl = null) - { - if (kubeconfig == null) - { - throw new NullReferenceException(nameof(kubeconfig)); - } - - var k8SConfig = LoadKubeConfig(kubeconfig); - var k8SConfiguration = new KubernetesClientConfiguration(); - - currentContext = currentContext ?? k8SConfig.CurrentContext; - // only init context if context if 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 Intializes 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"); - } - - CurrentContext = activeContext.Name; - - // cluster - SetClusterDetails(k8SConfig, activeContext); - - // user - SetUserDetails(k8SConfig, activeContext); - - // namespace - Namespace = activeContext.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; - - try - { - var uri = new Uri(Host); - if (uri.Scheme == "https") - { - // check certificate for https - if (!clusterDetails.ClusterEndpoint.SkipTlsVerify && - string.IsNullOrWhiteSpace(clusterDetails.ClusterEndpoint.CertificateAuthorityData) && - string.IsNullOrWhiteSpace(clusterDetails.ClusterEndpoint.CertificateAuthority)) - { - throw new KubeConfigException( - $"neither certificate-authority-data nor certificate-authority not found for current-context :{activeContext} in kubeconfig"); - } - - if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthorityData)) - { - var data = clusterDetails.ClusterEndpoint.CertificateAuthorityData; - SslCaCert = new X509Certificate2(Convert.FromBase64String(data)); - } - else if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthority)) - { - SslCaCert = new X509Certificate2(clusterDetails.ClusterEndpoint.CertificateAuthority); - } - } - } - catch (UriFormatException e) - { - throw new KubeConfigException("Bad Server host url", e); - } - } - - 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 = userDetails.UserCredentials.ClientCertificate; - ClientKeyFilePath = userDetails.UserCredentials.ClientKey; - userCredentialsFound = true; - } - - if (!userCredentialsFound) - { - throw new KubeConfigException( - $"User: {userDetails.Name} does not have appropriate auth credentials in kubeconfig"); - } - } - - /// - /// Loads Kube Config - /// - /// Kube config file contents - /// Instance of the class - private static K8SConfiguration LoadKubeConfig(FileInfo kubeconfig) - { - if (!kubeconfig.Exists) - { - throw new KubeConfigException($"kubeconfig file not found at {kubeconfig.FullName}"); - } - - var deserializeBuilder = new DeserializerBuilder(); - var deserializer = deserializeBuilder.Build(); - using (var kubeConfigTextStream = kubeconfig.OpenText()) - { - return deserializer.Deserialize(kubeConfigTextStream); - } - } - } -} diff --git a/src/KubernetesClientConfiguration.InCluster.cs b/src/KubernetesClientConfiguration.InCluster.cs deleted file mode 100644 index de4889bad..000000000 --- a/src/KubernetesClientConfiguration.InCluster.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.IO; -using k8s.Exceptions; - -namespace k8s -{ - public partial class KubernetesClientConfiguration - { - private const string ServiceaccountPath = "/var/run/secrets/kubernetes.io/serviceaccount/"; - private const string ServiceAccountTokenKeyFileName = "token"; - private const string ServiceAccountRootCAKeyFileName = "ca.crt"; - - public static KubernetesClientConfiguration InClusterConfig() - { - var host = Environment.GetEnvironmentVariable("KUBERNETES_SERVICE_HOST"); - var port = Environment.GetEnvironmentVariable("KUBERNETES_SERVICE_PORT"); - - if (string.IsNullOrWhiteSpace(host) || string.IsNullOrWhiteSpace(port)) - { - throw new KubeConfigException( - "unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"); - } - - var token = File.ReadAllText(Path.Combine(ServiceaccountPath, ServiceAccountTokenKeyFileName)); - var rootCAFile = Path.Combine(ServiceaccountPath, ServiceAccountRootCAKeyFileName); - - return new KubernetesClientConfiguration - { - Host = new UriBuilder("https", host, Convert.ToInt32(port)).ToString(), - AccessToken = token, - SslCaCert = CertUtils.LoadPemFileCert(rootCAFile) - }; - } - } -} diff --git a/src/KubernetesClientConfiguration.cs b/src/KubernetesClientConfiguration.cs deleted file mode 100644 index c7b11378d..000000000 --- a/src/KubernetesClientConfiguration.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System.Security.Cryptography.X509Certificates; - -namespace k8s -{ - /// - /// Represents a set of kubernetes client configuration settings - /// - public partial class KubernetesClientConfiguration - { - /// - /// Gets current namespace - /// - public string Namespace { get; set; } - - /// - /// Gets Host - /// - public string Host { get; set; } - - /// - /// Gets SslCaCert - /// - public X509Certificate2 SslCaCert { get; set; } - - /// - /// Gets ClientCertificateData - /// - public string ClientCertificateData { get; set; } - - /// - /// Gets ClientCertificate Key - /// - public string ClientCertificateKeyData { get; set; } - - /// - /// Gets ClientCertificate filename - /// - public string ClientCertificateFilePath { get; set; } - - /// - /// Gets ClientCertificate Key filename - /// - public string ClientKeyFilePath { get; set; } - - /// - /// Gets a value indicating whether to skip ssl server cert validation - /// - public bool SkipTlsVerify { get; set; } - - /// - /// Gets or sets the HTTP user agent. - /// - /// Http user agent. - public string UserAgent { get; set; } - - /// - /// Gets or sets the username (HTTP basic authentication). - /// - /// The username. - public string Username { get; set; } - - /// - /// Gets or sets the password (HTTP basic authentication). - /// - /// The password. - public string Password { get; set; } - - /// - /// Gets or sets the access token for OAuth2 authentication. - /// - /// The access token. - public string AccessToken { get; set; } - } -} 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/src/LibKubernetesGenerator/PluralHelper.cs b/src/LibKubernetesGenerator/PluralHelper.cs new file mode 100644 index 000000000..81091f88c --- /dev/null +++ b/src/LibKubernetesGenerator/PluralHelper.cs @@ -0,0 +1,69 @@ +using NJsonSchema; +using NSwag; +using Scriban.Runtime; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace LibKubernetesGenerator +{ + 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) + { + this.classNameHelper = classNameHelper; + _classNameToPluralMap = InitClassNameToPluralMap(swagger); + } + + public void RegisterHelper(ScriptObject scriptObject) + { + scriptObject.Import(nameof(GetPlural), new Func(GetPlural)); + } + + public string GetPlural(JsonSchema definition) + { + var className = classNameHelper.GetClassNameForSchemaDefinition(definition); + if (_classNameToPluralMap.TryGetValue(className, out var plural)) + { + return plural; + } + + 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(), + ClassName = classNameHelper.GetClassNameForSchemaDefinition(x.Operation.Responses["200"] + .ActualResponse.Schema.ActualSchema), + }) + .Distinct() + .ToDictionary(x => x.ClassName, x => x.PluralName); + + // dictionary only contains "list" plural maps. assign the same plural names to entities those lists support + classNameToPluralMap = classNameToPluralMap + .Where(x => x.Key.EndsWith("List", StringComparison.InvariantCulture)) + .Select(x => + new { ClassName = x.Key.Remove(x.Key.Length - 4), PluralName = x.Value }) + .ToDictionary(x => x.ClassName, x => x.PluralName) + .Union(classNameToPluralMap) + .ToDictionary(x => x.Key, x => x.Value); + + return classNameToPluralMap; + } + } +} 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/src/LibKubernetesGenerator/TypeHelper.cs b/src/LibKubernetesGenerator/TypeHelper.cs new file mode 100644 index 000000000..db27dab97 --- /dev/null +++ b/src/LibKubernetesGenerator/TypeHelper.cs @@ -0,0 +1,317 @@ +using NJsonSchema; +using NSwag; +using Scriban.Runtime; +using System; + +namespace LibKubernetesGenerator +{ + internal class TypeHelper : IScriptObjectHelper + { + private readonly ClassNameHelper classNameHelper; + + public TypeHelper(ClassNameHelper classNameHelper) + { + this.classNameHelper = classNameHelper; + } + + public void RegisterHelper(ScriptObject scriptObject) + { + 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) + { + if (name == "pretty" && !required) + { + return "bool?"; + } + + switch (jsonType) + { + case JsonObjectType.Boolean: + if (required) + { + return "bool"; + } + else + { + return "bool?"; + } + + case JsonObjectType.Integer: + switch (format) + { + case "int64": + if (required) + { + return "long"; + } + else + { + return "long?"; + } + + default: + if (required) + { + return "int"; + } + else + { + return "int?"; + } + } + + case JsonObjectType.Number: + if (required) + { + return "double"; + } + else + { + return "double?"; + } + + case JsonObjectType.String: + + switch (format) + { + 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"; + } + else + { + return "System.DateTime?"; + } + } + + return "string"; + case JsonObjectType.Object: + return "object"; + default: + throw new NotSupportedException(); + } + } + + private string GetDotNetType(JsonSchema schema, JsonSchemaProperty parent) + { + if (schema != null) + { + if (schema.IsArray) + { + return $"IList<{GetDotNetType(schema.Item, parent)}>"; + } + + if (schema.IsDictionary && schema.AdditionalPropertiesSchema != null) + { + return $"IDictionary"; + } + + if (schema?.Reference != null) + { + return classNameHelper.GetClassNameForSchemaDefinition(schema.Reference); + } + + if (schema != null) + { + return GetDotNetType(schema.Type, parent.Name, parent.IsRequired, schema.Format); + } + } + + return GetDotNetType(parent.Type, parent.Name, parent.IsRequired, parent.Format); + } + + public string GetDotNetType(JsonSchemaProperty p) + { + if (p.Reference != null) + { + return classNameHelper.GetClassNameForSchemaDefinition(p.Reference); + } + + if (p.IsArray) + { + // getType + return $"IList<{GetDotNetType(p.Item, p)}>"; + } + + if (p.IsDictionary && p.AdditionalPropertiesSchema != null) + { + return $"IDictionary"; + } + + return GetDotNetType(p.Type, p.Name, p.IsRequired, p.Format); + } + + public string GetDotNetTypeOpenApiParameter(OpenApiParameter parameter) + { + if (parameter.Schema?.Reference != null) + { + 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)); + } + } + + private string GetReturnType(OpenApiOperation operation, string sytle) + { + OpenApiResponse response; + + if (!operation.Responses.TryGetValue("200", out response)) + { + operation.Responses.TryGetValue("201", out response); + } + + string toType() + { + if (response != null) + { + var schema = response.Schema; + + if (schema == null) + { + return ""; + } + + if (schema.Format == "file") + { + return "Stream"; + } + + + if (schema.Reference != null) + { + return classNameHelper.GetClassNameForSchemaDefinition(schema.Reference); + } + + return GetDotNetType(schema.Type, "", true, schema.Format); + } + + return ""; + } + + var t = toType(); + + switch (sytle) + { + case "<>": + if (t != "") + { + return "<" + t + ">"; + } + + break; + case "void": + if (t == "") + { + return "void"; + } + + break; + case "return": + if (t != "") + { + return "return"; + } + + break; + case "_result.Body": + if (t != "") + { + return "return _result.Body"; + } + + break; + case "T": + var itemType = TryGetItemTypeFromSchema(response); + if (itemType != null) + { + return itemType; + } + + break; + case "TList": + return t; + } + + return t; + } + + public bool IfReturnType(OpenApiOperation operation, string type) + { + var rt = GetReturnType(operation, "void"); + if (type == "any" && rt != "void") + { + return true; + } + else if (string.Equals(type, rt.ToLower(), StringComparison.OrdinalIgnoreCase)) + { + return true; + } + else if (type == "obj" && rt != "void" && rt != "Stream") + { + return true; + } + + 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; + } + + private string TryGetItemTypeFromSchema(OpenApiResponse response) + { + var listSchema = response?.Schema?.Reference; + if (listSchema?.Properties?.TryGetValue("items", out var itemsProperty) != true) + { + return 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/ResourceQuantity.cs b/src/ResourceQuantity.cs deleted file mode 100644 index 993cdcbc2..000000000 --- a/src/ResourceQuantity.cs +++ /dev/null @@ -1,370 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using Fractions; -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); - } - } - - /// - /// port https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go to c# - /// Quantity is a fixed-point representation of a number. - /// It provides convenient marshaling/unmarshaling in JSON and YAML, - /// in addition to String() and Int64() 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 | digitdigits - /// number ::= digits | digits.digits | digits. | .digits - /// sign ::= "+" | "-" - /// signedNumber ::= number | signnumber - /// 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: We reserve the right to amend this canonical format, perhaps to - /// allow 1.5 to be canonical. - /// TODO: Remove above disclaimer after all bikeshedding about format is over, - /// or after March 2015. - /// 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. - /// - [JsonConverter(typeof(QuantityConverter))] - public partial class ResourceQuantity - { - public enum SuffixFormat - { - DecimalExponent, - BinarySI, - DecimalSI - } - - public static readonly decimal MaxAllowed = (decimal)BigInteger.Pow(2, 63) - 1; - - private static readonly char[] SuffixChars = "eEinumkKMGTP".ToCharArray(); - private Fraction _unitlessValue; - - public ResourceQuantity(decimal n, int exp, SuffixFormat format) - { - _unitlessValue = Fraction.FromDecimal(n) * Fraction.Pow(10, exp); - Format = format; - } - - public SuffixFormat Format { get; private set; } - - public string CanonicalizeString() - { - return CanonicalizeString(Format); - } - - 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). - // - // Note about BinarySI: - // * If q.Format is set to BinarySI and q.Amount represents a non-zero value between - // -1 and +1, it will be emitted as if q.Format were DecimalSI. - // * Otherwise, if q.Format is set to BinarySI, fractional parts of q.Amount will be - // rounded up. (1.1i becomes 2i.) - public string CanonicalizeString(SuffixFormat suffixFormat) - { - if (suffixFormat == SuffixFormat.BinarySI) - { - if (-1024 < _unitlessValue && _unitlessValue < 1024) - { - return Suffixer.AppendMaxSuffix(_unitlessValue, SuffixFormat.DecimalSI); - } - - if (HasMantissa(_unitlessValue)) - { - return Suffixer.AppendMaxSuffix(_unitlessValue, SuffixFormat.DecimalSI); - } - } - - return Suffixer.AppendMaxSuffix(_unitlessValue, suffixFormat); - } - - // ctor - partial void CustomInit() - { - var value = (Value ?? "").Trim(); - - var si = value.IndexOfAny(SuffixChars); - if (si == -1) - { - si = value.Length; - } - - var literal = Fraction.FromString(value.Substring(0, si)); - var suffixer = new Suffixer(value.Substring(si)); - - _unitlessValue = literal.Multiply(Fraction.Pow(suffixer.Base, suffixer.Exponent)); - Format = suffixer.Format; - - if (Format == SuffixFormat.BinarySI && _unitlessValue > Fraction.FromDecimal(MaxAllowed)) - { - _unitlessValue = Fraction.FromDecimal(MaxAllowed); - } - } - - private static bool HasMantissa(Fraction value) - { - if (value.IsZero) - { - return false; - } - - return BigInteger.Remainder(value.Numerator, value.Denominator) > 0; - } - - public static implicit operator decimal(ResourceQuantity v) - { - return v._unitlessValue.ToDecimal(); - } - - public static implicit operator ResourceQuantity(decimal v) - { - return new ResourceQuantity(v, 0, SuffixFormat.DecimalExponent); - } - - #region suffixer - - private class Suffixer - { - private static readonly IReadOnlyDictionary BinSuffixes = - new Dictionary - { - // Don't emit an error when trying to produce - // a suffix for 2^0. - {"", (2, 0)}, - {"Ki", (2, 10)}, - {"Mi", (2, 20)}, - {"Gi", (2, 30)}, - {"Ti", (2, 40)}, - {"Pi", (2, 50)}, - {"Ei", (2, 60)} - }; - - private static readonly IReadOnlyDictionary DecSuffixes = - new Dictionary - { - {"n", (10, -9)}, - {"u", (10, -6)}, - {"m", (10, -3)}, - {"", (10, 0)}, - {"k", (10, 3)}, - {"M", (10, 6)}, - {"G", (10, 9)}, - {"T", (10, 12)}, - {"P", (10, 15)}, - {"E", (10, 18)} - }; - - public Suffixer(string suffix) - { - // looked up - { - if (DecSuffixes.TryGetValue(suffix, out var be)) - { - (Base, Exponent) = be; - Format = SuffixFormat.DecimalSI; - - return; - } - } - - { - if (BinSuffixes.TryGetValue(suffix, out var be)) - { - (Base, Exponent) = be; - Format = SuffixFormat.BinarySI; - - return; - } - } - - if (char.ToLower(suffix[0]) == 'e') - { - Base = 10; - Exponent = int.Parse(suffix.Substring(1)); - Format = SuffixFormat.DecimalExponent; - return; - } - - throw new ArgumentException("unable to parse quantity's suffix"); - } - - public SuffixFormat Format { get; } - - public int Base { get; } - public int Exponent { get; } - - - public static string AppendMaxSuffix(Fraction value, SuffixFormat format) - { - if (value.IsZero) - { - return "0"; - } - - switch (format) - { - case SuffixFormat.DecimalExponent: - { - var minE = -9; - var lastv = Roundup(value * Fraction.Pow(10, -minE)); - - for (var exp = minE;; exp += 3) - { - var v = value * Fraction.Pow(10, -exp); - if (HasMantissa(v)) - { - break; - } - - minE = exp; - lastv = v; - } - - - if (minE == 0) - { - return $"{(decimal) lastv}"; - } - - return $"{(decimal) lastv}e{minE}"; - } - - case SuffixFormat.BinarySI: - return AppendMaxSuffix(value, BinSuffixes); - case SuffixFormat.DecimalSI: - return AppendMaxSuffix(value, DecSuffixes); - default: - throw new ArgumentOutOfRangeException(nameof(format), format, null); - } - } - - private static string AppendMaxSuffix(Fraction value, IReadOnlyDictionary suffixes) - { - var min = suffixes.First(); - var suffix = min.Key; - var lastv = Roundup(value * Fraction.Pow(min.Value.Item1, -min.Value.Item2)); - - foreach (var kv in suffixes.Skip(1)) - { - var v = value * Fraction.Pow(kv.Value.Item1, -kv.Value.Item2); - if (HasMantissa(v)) - { - break; - } - - suffix = kv.Key; - lastv = v; - } - - return $"{(decimal) lastv}{suffix}"; - } - - private static Fraction Roundup(Fraction lastv) - { - var round = BigInteger.DivRem(lastv.Numerator, lastv.Denominator, out var remainder); - if (!remainder.IsZero) - { - lastv = round + 1; - } - return lastv; - } - } - - #endregion - } -} diff --git a/src/V1Status.ObjectView.cs b/src/V1Status.ObjectView.cs deleted file mode 100644 index 4c4f409e8..000000000 --- a/src/V1Status.ObjectView.cs +++ /dev/null @@ -1,52 +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/Watcher.cs b/src/Watcher.cs deleted file mode 100644 index f0bc21692..000000000 --- a/src/Watcher.cs +++ /dev/null @@ -1,143 +0,0 @@ -using System; -using System.IO; -using System.Runtime.Serialization; -using System.Threading; -using System.Threading.Tasks; -using k8s.Exceptions; -using Microsoft.Rest; -using Microsoft.Rest.Serialization; - -namespace k8s -{ - public enum WatchEventType - { - [EnumMember(Value = "ADDED")] Added, - - [EnumMember(Value = "MODIFIED")] Modified, - - [EnumMember(Value = "DELETED")] Deleted, - - [EnumMember(Value = "ERROR")] Error - } - - public class Watcher : IDisposable - { - /// - /// indicate if the watch object is alive - /// - public bool Watching { get; private set; } - - private readonly CancellationTokenSource _cts; - private readonly StreamReader _streamReader; - - internal Watcher(StreamReader streamReader, Action onEvent, Action onError) - { - _streamReader = streamReader; - OnEvent += onEvent; - OnError += onError; - - _cts = new CancellationTokenSource(); - - var token = _cts.Token; - - Task.Run(async () => - { - try - { - Watching = true; - - while (!streamReader.EndOfStream) - { - if (token.IsCancellationRequested) - { - return; - } - - var line = await streamReader.ReadLineAsync(); - - try - { - var @event = SafeJsonConvert.DeserializeObject(line); - OnEvent?.Invoke(@event.Type, @event.Object); - } - catch (Exception e) - { - // error if deserialized failed or onevent throws - OnError?.Invoke(e); - } - } - } - catch (Exception e) - { - // error when transport error, IOException ect - OnError?.Invoke(e); - } - finally - { - Watching = false; - } - }, token); - } - - public void Dispose() - { - _cts.Cancel(); - _streamReader.Dispose(); - } - - /// - /// add/remove callbacks when any event raised from api server - /// - public event Action OnEvent; - - /// - /// add/remove callbacks when any exception was caught during watching - /// - public event Action OnError; - - public class WatchEvent - { - public WatchEventType Type { get; set; } - - public T Object { get; set; } - } - } - - public static class WatcherExt - { - /// - /// create a watch object from a call to api server with watch=true - /// - /// type of the event object - /// the api response - /// a callback when any event raised from api server - /// a callbak when any exception was caught during watching - /// a watch object - public static Watcher Watch(this HttpOperationResponse response, - Action onEvent, - Action onError = null) - { - if (!(response.Response.Content is WatcherDelegatingHandler.LineSeparatedHttpContent content)) - { - throw new KubernetesClientException("not a watchable request or failed response"); - } - - return new Watcher(content.StreamReader, onEvent, onError); - } - - /// - /// create a watch object from a call to api server with watch=true - /// - /// type of the event object - /// the api response - /// a callback when any event raised from api server - /// a callbak when any exception was caught during watching - /// a watch object - public static Watcher Watch(this HttpOperationResponse response, - Action onEvent, - Action onError = null) - { - return Watch((HttpOperationResponse) response, onEvent, onError); - } - } -} diff --git a/src/WatcherDelegatingHandler.cs b/src/WatcherDelegatingHandler.cs deleted file mode 100644 index 29a80db66..000000000 --- a/src/WatcherDelegatingHandler.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.IO; -using System.Linq; -using System.Net; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.AspNetCore.WebUtilities; - -namespace k8s -{ - /// - /// This HttpDelegatingHandler is to rewrite the response and return first line to autorest client - /// then use WatchExt to create a watch object which interact with the replaced http response to get watch works. - /// - internal class WatcherDelegatingHandler : DelegatingHandler - { - protected override async Task SendAsync(HttpRequestMessage request, - CancellationToken cancellationToken) - { - var originResponse = await base.SendAsync(request, cancellationToken); - - if (originResponse.IsSuccessStatusCode) - { - var query = QueryHelpers.ParseQuery(request.RequestUri.Query); - - if (query.TryGetValue("watch", out var values) && values.Any(v => v == "true")) - { - originResponse.Content = new LineSeparatedHttpContent(originResponse.Content); - } - } - return originResponse; - } - - internal class LineSeparatedHttpContent : HttpContent - { - private readonly HttpContent _originContent; - private Stream _originStream; - - public LineSeparatedHttpContent(HttpContent originContent) - { - _originContent = originContent; - } - - internal StreamReader StreamReader { get; private set; } - - protected override async Task SerializeToStreamAsync(Stream stream, TransportContext context) - { - _originStream = await _originContent.ReadAsStreamAsync(); - - StreamReader = new StreamReader(_originStream); - - var firstLine = await StreamReader.ReadLineAsync(); - var writer = new StreamWriter(stream); - -// using (writer) // leave open - { - await writer.WriteAsync(firstLine); - await writer.FlushAsync(); - } - } - - protected override bool TryComputeLength(out long length) - { - length = 0; - return false; - } - } - } -} \ No newline at end of file diff --git a/src/WebSocketBuilder.cs b/src/WebSocketBuilder.cs deleted file mode 100644 index 57a73d64a..000000000 --- a/src/WebSocketBuilder.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Net.WebSockets; -using System.Security.Cryptography.X509Certificates; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - /// - /// The creates a new object which connects to a remote WebSocket. - /// - /// - /// By default, this uses the .NET class, but you can inherit from this class and change it to - /// use any class which inherits from , should you want to use a third party framework or mock the requests. - /// - public class WebSocketBuilder - { - protected ClientWebSocket WebSocket { get; private set; } = new ClientWebSocket(); - - public WebSocketBuilder() - { - this.WebSocket = new ClientWebSocket(); - } - - public virtual WebSocketBuilder SetRequestHeader(string headerName, string headerValue) - { - this.WebSocket.Options.SetRequestHeader(headerName, headerValue); - return this; - } - - public virtual WebSocketBuilder AddClientCertificate(X509Certificate certificate) - { - this.WebSocket.Options.ClientCertificates.Add(certificate); - return this; - } - - public virtual async Task BuildAndConnectAsync(Uri uri, CancellationToken cancellationToken) - { - await this.WebSocket.ConnectAsync(uri, cancellationToken).ConfigureAwait(false); - return this.WebSocket; - } - } -} diff --git a/src/generated/.swagger-codegen/COMMIT b/src/generated/.swagger-codegen/COMMIT deleted file mode 100644 index a25cb6336..000000000 --- a/src/generated/.swagger-codegen/COMMIT +++ /dev/null @@ -1,2 +0,0 @@ -Requested Commit: v2.2.3 -Actual Commit: 049b1b2bcc904e1179a0e9b11124ed8fa0e3be2e diff --git a/src/generated/IKubernetes.cs b/src/generated/IKubernetes.cs deleted file mode 100644 index 5f377b3cb..000000000 --- a/src/generated/IKubernetes.cs +++ /dev/null @@ -1,24929 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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.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 available API versions - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIVersionsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResourcesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list objects of kind ComponentStatus - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListComponentStatusWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadComponentStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListConfigMapForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListEndpointsForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Event - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListEventForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListLimitRangeForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Namespace - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespaceWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Namespace - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespaceWithHttpMessagesAsync(V1Namespace body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Binding - /// - /// - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedBindingWithHttpMessagesAsync(V1Binding body, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedConfigMapWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedConfigMapWithHttpMessagesAsync(V1ConfigMap body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedConfigMapWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedConfigMapWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedConfigMapWithHttpMessagesAsync(V1ConfigMap body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedConfigMapWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedConfigMapWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedEndpointsWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedEndpointsWithHttpMessagesAsync(V1Endpoints body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedEndpointsWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedEndpointsWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedEndpointsWithHttpMessagesAsync(V1Endpoints body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete Endpoints - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedEndpointsWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedEndpointsWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedEventWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedEventWithHttpMessagesAsync(V1Event body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedEventWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedEventWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedEventWithHttpMessagesAsync(V1Event body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedEventWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedEventWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedLimitRangeWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedLimitRangeWithHttpMessagesAsync(V1LimitRange body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedLimitRangeWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedLimitRangeWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedLimitRangeWithHttpMessagesAsync(V1LimitRange body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedLimitRangeWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedLimitRangeWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedPersistentVolumeClaimWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPersistentVolumeClaimWithHttpMessagesAsync(V1PersistentVolumeClaim body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedPersistentVolumeClaimWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPersistentVolumeClaimWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPersistentVolumeClaimWithHttpMessagesAsync(V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedPersistentVolumeClaimWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPersistentVolumeClaimWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedPodWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPodWithHttpMessagesAsync(V1Pod body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedPodWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPodWithHttpMessagesAsync(V1Pod body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedPodWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPodWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to attach of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedPodAttachWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to attach of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedPodAttachWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPodBindingWithHttpMessagesAsync(V1Binding body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPodEvictionWithHttpMessagesAsync(V1beta1Eviction body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to exec of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedPodExecWithHttpMessagesAsync(string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to exec of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedPodExecWithHttpMessagesAsync(string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), 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. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodLogWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedPodPortforwardWithHttpMessagesAsync(string name, string namespaceParameter, int? ports = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedPodPortforwardWithHttpMessagesAsync(string name, string namespaceParameter, int? ports = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPutNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectDeleteNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectHeadNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPatchNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPutNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectDeleteNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectHeadNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPatchNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPodStatusWithHttpMessagesAsync(V1Pod body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPodStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedPodTemplateWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPodTemplateWithHttpMessagesAsync(V1PodTemplate body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedPodTemplateWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodTemplateWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPodTemplateWithHttpMessagesAsync(V1PodTemplate body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedPodTemplateWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPodTemplateWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedReplicationControllerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedReplicationControllerWithHttpMessagesAsync(V1ReplicationController body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedReplicationControllerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicationControllerWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicationControllerWithHttpMessagesAsync(V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedReplicationControllerWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicationControllerWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicationControllerScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicationControllerScaleWithHttpMessagesAsync(V1Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicationControllerScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicationControllerStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicationControllerStatusWithHttpMessagesAsync(V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicationControllerStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedResourceQuotaWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedResourceQuotaWithHttpMessagesAsync(V1ResourceQuota body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedResourceQuotaWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedResourceQuotaWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedResourceQuotaWithHttpMessagesAsync(V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedResourceQuotaWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedResourceQuotaWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedResourceQuotaStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedResourceQuotaStatusWithHttpMessagesAsync(V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedResourceQuotaStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedSecretWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedSecretWithHttpMessagesAsync(V1Secret body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedSecretWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedSecretWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedSecretWithHttpMessagesAsync(V1Secret body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedSecretWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedSecretWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedServiceAccountWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedServiceAccountWithHttpMessagesAsync(V1ServiceAccount body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedServiceAccountWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedServiceAccountWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedServiceAccountWithHttpMessagesAsync(V1ServiceAccount body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedServiceAccountWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedServiceAccountWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedServiceWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedServiceWithHttpMessagesAsync(V1Service body, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedServiceWithHttpMessagesAsync(V1Service body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedServiceWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPutNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectDeleteNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectHeadNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPatchNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPutNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectDeleteNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectHeadNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPatchNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedServiceStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedServiceStatusWithHttpMessagesAsync(V1Service body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedServiceStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Namespace - /// - /// - /// name of the Namespace - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespaceWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespaceWithHttpMessagesAsync(V1Namespace body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespaceWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespaceWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace finalize of the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespaceFinalizeWithHttpMessagesAsync(V1Namespace body, string name, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespaceStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespaceStatusWithHttpMessagesAsync(V1Namespace body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update 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. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespaceStatusWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNodeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a Node - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateNodeWithHttpMessagesAsync(V1Node body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNodeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified Node - /// - /// - /// name of the Node - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNodeWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNodeWithHttpMessagesAsync(V1Node body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNodeWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNodeWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ConnectPutNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ConnectDeleteNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ConnectHeadNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ConnectPatchNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect GET requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectGetNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPutNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect POST requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPostNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectDeleteNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectHeadNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ConnectPatchNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNodeStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNodeStatusWithHttpMessagesAsync(V1Node body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update 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. - /// - /// - /// The cancellation token. - /// - Task> PatchNodeStatusWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListPersistentVolumeClaimForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListPersistentVolumeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PersistentVolume - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreatePersistentVolumeWithHttpMessagesAsync(V1PersistentVolume body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionPersistentVolumeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PersistentVolume - /// - /// - /// name of the PersistentVolume - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadPersistentVolumeWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplacePersistentVolumeWithHttpMessagesAsync(V1PersistentVolume body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeletePersistentVolumeWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchPersistentVolumeWithHttpMessagesAsync(object body, string name, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadPersistentVolumeStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplacePersistentVolumeStatusWithHttpMessagesAsync(V1PersistentVolume body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update 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. - /// - /// - /// The cancellation token. - /// - Task> PatchPersistentVolumeStatusWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Pod - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListPodForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListPodTemplateForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy GET requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyGETNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PUT requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPUTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy POST requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPOSTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy DELETE requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyDELETENamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy HEAD requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyHEADNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PATCH requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPATCHNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy GET requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PUT requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy POST requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy DELETE requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy HEAD requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PATCH requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPATCHNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy GET requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyGETNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PUT requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPUTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy POST requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPOSTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy DELETE requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyDELETENamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy HEAD requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyHEADNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PATCH requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPATCHNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy GET requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyGETNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PUT requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPUTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy POST requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPOSTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy DELETE requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyDELETENamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy HEAD requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyHEADNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PATCH requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPATCHNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy GET requests to Node - /// - /// - /// name of the Node - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyGETNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PUT requests to Node - /// - /// - /// name of the Node - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPUTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy POST requests to Node - /// - /// - /// name of the Node - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPOSTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy DELETE requests to Node - /// - /// - /// name of the Node - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyDELETENodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy HEAD requests to Node - /// - /// - /// name of the Node - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyHEADNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PATCH requests to Node - /// - /// - /// name of the Node - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPATCHNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy GET requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyGETNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PUT requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPUTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy POST requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPOSTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy DELETE requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyDELETENodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy HEAD requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyHEADNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// proxy PATCH requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ProxyPATCHNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListReplicationControllerForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListResourceQuotaForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Secret - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListSecretForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListServiceAccountForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Service - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListServiceForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available API versions - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIVersions1WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroupWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources1WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ExternalAdmissionHookConfiguration - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListExternalAdmissionHookConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateExternalAdmissionHookConfigurationWithHttpMessagesAsync(V1alpha1ExternalAdmissionHookConfiguration body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of ExternalAdmissionHookConfiguration - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionExternalAdmissionHookConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified ExternalAdmissionHookConfiguration - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadExternalAdmissionHookConfigurationWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceExternalAdmissionHookConfigurationWithHttpMessagesAsync(V1alpha1ExternalAdmissionHookConfiguration body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteExternalAdmissionHookConfigurationWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchExternalAdmissionHookConfigurationWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind InitializerConfiguration - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListInitializerConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an InitializerConfiguration - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateInitializerConfigurationWithHttpMessagesAsync(V1alpha1InitializerConfiguration body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of InitializerConfiguration - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionInitializerConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified InitializerConfiguration - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadInitializerConfigurationWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified InitializerConfiguration - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceInitializerConfigurationWithHttpMessagesAsync(V1alpha1InitializerConfiguration body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an InitializerConfiguration - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteInitializerConfigurationWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified InitializerConfiguration - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchInitializerConfigurationWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup1WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources2WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListCustomResourceDefinitionWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CustomResourceDefinition - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateCustomResourceDefinitionWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionCustomResourceDefinitionWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadCustomResourceDefinitionWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceCustomResourceDefinitionWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteCustomResourceDefinitionWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchCustomResourceDefinitionWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup2WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources3WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListAPIServiceWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an APIService - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateAPIServiceWithHttpMessagesAsync(V1beta1APIService body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionAPIServiceWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified APIService - /// - /// - /// name of the APIService - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadAPIServiceWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceAPIServiceWithHttpMessagesAsync(V1beta1APIService body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete an APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteAPIServiceWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchAPIServiceWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceAPIServiceStatusWithHttpMessagesAsync(V1beta1APIService body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup3WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources4WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListControllerRevisionForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListDeploymentForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedControllerRevisionWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedControllerRevisionWithHttpMessagesAsync(V1beta1ControllerRevision body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedControllerRevisionWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedControllerRevisionWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedControllerRevisionWithHttpMessagesAsync(V1beta1ControllerRevision body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedControllerRevisionWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedControllerRevisionWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedDeploymentWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDeploymentWithHttpMessagesAsync(Appsv1beta1Deployment body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedDeploymentWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentWithHttpMessagesAsync(Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedDeploymentWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create rollback of a Deployment - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDeploymentRollbackWithHttpMessagesAsync(Appsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentScaleWithHttpMessagesAsync(Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentStatusWithHttpMessagesAsync(Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedStatefulSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedStatefulSetWithHttpMessagesAsync(V1beta1StatefulSet body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedStatefulSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedStatefulSetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedStatefulSetWithHttpMessagesAsync(V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedStatefulSetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedStatefulSetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedStatefulSetScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedStatefulSetScaleWithHttpMessagesAsync(Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedStatefulSetScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedStatefulSetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedStatefulSetStatusWithHttpMessagesAsync(V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedStatefulSetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListStatefulSetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources5WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListControllerRevisionForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListDaemonSetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListDeploymentForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedControllerRevision1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedControllerRevision1WithHttpMessagesAsync(V1beta2ControllerRevision body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedControllerRevision1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedControllerRevision1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedControllerRevision1WithHttpMessagesAsync(V1beta2ControllerRevision body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedControllerRevision1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedControllerRevision1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedDaemonSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDaemonSetWithHttpMessagesAsync(V1beta2DaemonSet body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedDaemonSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDaemonSetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDaemonSetWithHttpMessagesAsync(V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedDaemonSetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDaemonSetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDaemonSetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDaemonSetStatusWithHttpMessagesAsync(V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDaemonSetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedDeployment1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDeployment1WithHttpMessagesAsync(V1beta2Deployment body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedDeployment1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeployment1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeployment1WithHttpMessagesAsync(V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedDeployment1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeployment1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentScale1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentScale1WithHttpMessagesAsync(V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentScale1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentStatus1WithHttpMessagesAsync(V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedReplicaSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedReplicaSetWithHttpMessagesAsync(V1beta2ReplicaSet body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedReplicaSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicaSetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicaSetWithHttpMessagesAsync(V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedReplicaSetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicaSetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicaSetScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicaSetScaleWithHttpMessagesAsync(V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicaSetScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicaSetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicaSetStatusWithHttpMessagesAsync(V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicaSetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedStatefulSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedStatefulSet1WithHttpMessagesAsync(V1beta2StatefulSet body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedStatefulSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedStatefulSet1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedStatefulSet1WithHttpMessagesAsync(V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedStatefulSet1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedStatefulSet1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedStatefulSetScale1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedStatefulSetScale1WithHttpMessagesAsync(V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedStatefulSetScale1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedStatefulSetStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedStatefulSetStatus1WithHttpMessagesAsync(V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedStatefulSetStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListReplicaSetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListStatefulSetForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup4WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources6WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a TokenReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateTokenReviewWithHttpMessagesAsync(V1TokenReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources7WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a TokenReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateTokenReview1WithHttpMessagesAsync(V1beta1TokenReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup5WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources8WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedLocalSubjectAccessReviewWithHttpMessagesAsync(V1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateSelfSubjectAccessReviewWithHttpMessagesAsync(V1SelfSubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateSelfSubjectRulesReviewWithHttpMessagesAsync(V1SelfSubjectRulesReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateSubjectAccessReviewWithHttpMessagesAsync(V1SubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources9WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedLocalSubjectAccessReview1WithHttpMessagesAsync(V1beta1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateSelfSubjectAccessReview1WithHttpMessagesAsync(V1beta1SelfSubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateSelfSubjectRulesReview1WithHttpMessagesAsync(V1beta1SelfSubjectRulesReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a SubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateSubjectAccessReview1WithHttpMessagesAsync(V1beta1SubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup6WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources10WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListHorizontalPodAutoscalerForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(V1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources11WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListHorizontalPodAutoscalerForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(V2beta1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup7WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources12WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Job - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListJobForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedJobWithHttpMessagesAsync(V1Job body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedJobWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedJobWithHttpMessagesAsync(V1Job body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedJobWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedJobWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedJobStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedJobStatusWithHttpMessagesAsync(V1Job body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedJobStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources13WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListCronJobForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedCronJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedCronJobWithHttpMessagesAsync(V1beta1CronJob body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedCronJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedCronJobWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedCronJobWithHttpMessagesAsync(V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedCronJobWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedCronJobWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedCronJobStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedCronJobStatusWithHttpMessagesAsync(V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedCronJobStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources14WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListCronJobForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedCronJob1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedCronJob1WithHttpMessagesAsync(V2alpha1CronJob body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedCronJob1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedCronJob1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedCronJob1WithHttpMessagesAsync(V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedCronJob1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedCronJob1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedCronJobStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedCronJobStatus1WithHttpMessagesAsync(V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedCronJobStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup8WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources15WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListCertificateSigningRequestWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a CertificateSigningRequest - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateCertificateSigningRequestWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionCertificateSigningRequestWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadCertificateSigningRequestWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceCertificateSigningRequestWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteCertificateSigningRequestWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchCertificateSigningRequestWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup9WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources16WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListDaemonSetForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListDeploymentForAllNamespaces2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Ingress - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListIngressForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedDaemonSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDaemonSet1WithHttpMessagesAsync(V1beta1DaemonSet body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedDaemonSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDaemonSet1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDaemonSet1WithHttpMessagesAsync(V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedDaemonSet1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDaemonSet1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDaemonSetStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDaemonSetStatus1WithHttpMessagesAsync(V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDaemonSetStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedDeployment2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDeployment2WithHttpMessagesAsync(Extensionsv1beta1Deployment body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedDeployment2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeployment2WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeployment2WithHttpMessagesAsync(Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedDeployment2WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeployment2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create rollback of a Deployment - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedDeploymentRollback1WithHttpMessagesAsync(Extensionsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentScale2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentScale2WithHttpMessagesAsync(Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentScale2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedDeploymentStatus2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedDeploymentStatus2WithHttpMessagesAsync(Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedDeploymentStatus2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedIngressWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create an 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedIngressWithHttpMessagesAsync(V1beta1Ingress body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedIngressWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedIngressWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedIngressWithHttpMessagesAsync(V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedIngressWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedIngressWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedIngressStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedIngressStatusWithHttpMessagesAsync(V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedIngressStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedNetworkPolicyWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedNetworkPolicyWithHttpMessagesAsync(V1beta1NetworkPolicy body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedNetworkPolicyWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedNetworkPolicyWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedNetworkPolicyWithHttpMessagesAsync(V1beta1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedNetworkPolicyWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedNetworkPolicyWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedReplicaSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedReplicaSet1WithHttpMessagesAsync(V1beta1ReplicaSet body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedReplicaSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicaSet1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicaSet1WithHttpMessagesAsync(V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedReplicaSet1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicaSet1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicaSetScale1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicaSetScale1WithHttpMessagesAsync(Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicaSetScale1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicaSetStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicaSetStatus1WithHttpMessagesAsync(V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicaSetStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read scale of the specified ReplicationControllerDummy - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace scale of the specified ReplicationControllerDummy - /// - /// - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update scale of the specified ReplicationControllerDummy - /// - /// - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListNetworkPolicyForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListPodSecurityPolicyWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PodSecurityPolicy - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreatePodSecurityPolicyWithHttpMessagesAsync(V1beta1PodSecurityPolicy body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionPodSecurityPolicyWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadPodSecurityPolicyWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PodSecurityPolicy - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplacePodSecurityPolicyWithHttpMessagesAsync(V1beta1PodSecurityPolicy body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PodSecurityPolicy - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeletePodSecurityPolicyWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PodSecurityPolicy - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchPodSecurityPolicyWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListReplicaSetForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup10WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources17WithHttpMessagesAsync(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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedNetworkPolicy1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedNetworkPolicy1WithHttpMessagesAsync(V1NetworkPolicy body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedNetworkPolicy1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedNetworkPolicy1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedNetworkPolicy1WithHttpMessagesAsync(V1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedNetworkPolicy1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedNetworkPolicy1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListNetworkPolicyForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup11WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources18WithHttpMessagesAsync(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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedPodDisruptionBudgetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPodDisruptionBudgetWithHttpMessagesAsync(V1beta1PodDisruptionBudget body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedPodDisruptionBudgetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodDisruptionBudgetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPodDisruptionBudgetWithHttpMessagesAsync(V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedPodDisruptionBudgetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPodDisruptionBudgetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListPodDisruptionBudgetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup12WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources19WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterRoleBindingWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterRoleBindingWithHttpMessagesAsync(V1ClusterRoleBinding body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionClusterRoleBindingWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadClusterRoleBindingWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterRoleBindingWithHttpMessagesAsync(V1ClusterRoleBinding body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterRoleBindingWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchClusterRoleBindingWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterRoleWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterRoleWithHttpMessagesAsync(V1ClusterRole body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionClusterRoleWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadClusterRoleWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterRoleWithHttpMessagesAsync(V1ClusterRole body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterRoleWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchClusterRoleWithHttpMessagesAsync(object body, string name, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedRoleBindingWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedRoleBindingWithHttpMessagesAsync(V1RoleBinding body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedRoleBindingWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedRoleBindingWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedRoleBindingWithHttpMessagesAsync(V1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedRoleBindingWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedRoleBindingWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedRoleWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedRoleWithHttpMessagesAsync(V1Role body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedRoleWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedRoleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedRoleWithHttpMessagesAsync(V1Role body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedRoleWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedRoleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListRoleBindingForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListRoleForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources20WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterRoleBinding1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterRoleBinding1WithHttpMessagesAsync(V1alpha1ClusterRoleBinding body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionClusterRoleBinding1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadClusterRoleBinding1WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterRoleBinding1WithHttpMessagesAsync(V1alpha1ClusterRoleBinding body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterRoleBinding1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchClusterRoleBinding1WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterRole1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterRole1WithHttpMessagesAsync(V1alpha1ClusterRole body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionClusterRole1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadClusterRole1WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterRole1WithHttpMessagesAsync(V1alpha1ClusterRole body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterRole1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchClusterRole1WithHttpMessagesAsync(object body, string name, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedRoleBinding1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedRoleBinding1WithHttpMessagesAsync(V1alpha1RoleBinding body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedRoleBinding1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedRoleBinding1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedRoleBinding1WithHttpMessagesAsync(V1alpha1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedRoleBinding1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedRoleBinding1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedRole1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedRole1WithHttpMessagesAsync(V1alpha1Role body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedRole1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedRole1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedRole1WithHttpMessagesAsync(V1alpha1Role body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedRole1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedRole1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListRoleBindingForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListRoleForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources21WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterRoleBinding2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterRoleBinding2WithHttpMessagesAsync(V1beta1ClusterRoleBinding body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionClusterRoleBinding2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadClusterRoleBinding2WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterRoleBinding2WithHttpMessagesAsync(V1beta1ClusterRoleBinding body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterRoleBinding2WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchClusterRoleBinding2WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterRole2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterRole2WithHttpMessagesAsync(V1beta1ClusterRole body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionClusterRole2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadClusterRole2WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterRole2WithHttpMessagesAsync(V1beta1ClusterRole body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterRole2WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchClusterRole2WithHttpMessagesAsync(object body, string name, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedRoleBinding2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedRoleBinding2WithHttpMessagesAsync(V1beta1RoleBinding body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedRoleBinding2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedRoleBinding2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedRoleBinding2WithHttpMessagesAsync(V1beta1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedRoleBinding2WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedRoleBinding2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedRole2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedRole2WithHttpMessagesAsync(V1beta1Role body, string namespaceParameter, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedRole2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedRole2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedRole2WithHttpMessagesAsync(V1beta1Role body, string name, string namespaceParameter, string pretty = default(string), 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedRole2WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedRole2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListRoleBindingForAllNamespaces2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind Role - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListRoleForAllNamespaces2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup13WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources22WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListPriorityClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PriorityClass - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreatePriorityClassWithHttpMessagesAsync(V1alpha1PriorityClass body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionPriorityClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PriorityClass - /// - /// - /// name of the PriorityClass - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadPriorityClassWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PriorityClass - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplacePriorityClassWithHttpMessagesAsync(V1alpha1PriorityClass body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PriorityClass - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeletePriorityClassWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PriorityClass - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchPriorityClassWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup14WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources23WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedPodPresetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a PodPreset - /// - /// - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedPodPresetWithHttpMessagesAsync(V1alpha1PodPreset body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete collection of PodPreset - /// - /// - /// 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionNamespacedPodPresetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified PodPreset - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadNamespacedPodPresetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified PodPreset - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedPodPresetWithHttpMessagesAsync(V1alpha1PodPreset body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a PodPreset - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedPodPresetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified PodPreset - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> PatchNamespacedPodPresetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// The continue option should be set when retrieving more results from - /// the server. Since this value is server defined, clients may only - /// use the continue value from a previous query result with identical - /// query parameters (except for the value of continue) and the server - /// may reject a continue value it does not recognize. If the specified - /// continue value is no longer valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - Task> ListPodPresetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get information of a group - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIGroup15WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources24WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListStorageClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a StorageClass - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateStorageClassWithHttpMessagesAsync(V1StorageClass body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionStorageClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified StorageClass - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadStorageClassWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceStorageClassWithHttpMessagesAsync(V1StorageClass body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteStorageClassWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchStorageClassWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get available resources - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetAPIResources25WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// list or watch objects of kind 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListStorageClass1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// create a StorageClass - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateStorageClass1WithHttpMessagesAsync(V1beta1StorageClass body, string pretty = default(string), 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 - /// 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> DeleteCollectionStorageClass1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// read the specified StorageClass - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains - /// cluster-specific fields like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user - /// can not specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReadStorageClass1WithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// replace the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceStorageClass1WithHttpMessagesAsync(V1beta1StorageClass body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// delete a StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value - /// must be non-negative integer. The value zero indicates delete - /// immediately. If this value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteStorageClass1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// partially update the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> PatchStorageClass1WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task LogFileListHandlerWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// path to the log - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task LogFileHandlerWithHttpMessagesAsync(string logpath, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - /// get the code version - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> GetCodeWithHttpMessagesAsync(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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateClusterCustomObjectWithHttpMessagesAsync(object body, string group, string version, string plural, string pretty = default(string), 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. - /// - /// - /// A selector to restrict the list of returned objects by their - /// labels. Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListClusterCustomObjectWithHttpMessagesAsync(string group, string version, string plural, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string), 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> CreateNamespacedCustomObjectWithHttpMessagesAsync(object body, string group, string version, string namespaceParameter, string plural, string pretty = default(string), 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. - /// - /// - /// A selector to restrict the list of returned objects by their - /// labels. Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - Task> ListNamespacedCustomObjectWithHttpMessagesAsync(string group, string version, string namespaceParameter, string plural, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string), 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 - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceClusterCustomObjectWithHttpMessagesAsync(object body, string group, string version, string plural, string name, 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. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteClusterCustomObjectWithHttpMessagesAsync(V1DeleteOptions body, string group, string version, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> GetClusterCustomObjectWithHttpMessagesAsync(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 - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> ReplaceNamespacedCustomObjectWithHttpMessagesAsync(object body, string group, string version, string namespaceParameter, string plural, string name, 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. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - Task> DeleteNamespacedCustomObjectWithHttpMessagesAsync(V1DeleteOptions body, string group, string version, string namespaceParameter, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), 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. - /// - /// - /// The cancellation token. - /// - Task> GetNamespacedCustomObjectWithHttpMessagesAsync(string group, string version, string namespaceParameter, string plural, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - - } -} diff --git a/src/generated/Kubernetes.cs b/src/generated/Kubernetes.cs deleted file mode 100644 index 380cc9277..000000000 --- a/src/generated/Kubernetes.cs +++ /dev/null @@ -1,130627 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// 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 Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - public partial class Kubernetes : ServiceClient, IKubernetes - { - /// - /// The base URI of the service. - /// - public System.Uri BaseUri { get; set; } - - /// - /// Gets or sets json serialization settings. - /// - public JsonSerializerSettings SerializationSettings { get; private set; } - - /// - /// Gets or sets 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 Kubernetes 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 Kubernetes 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 Kubernetes class. - /// - /// - /// 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) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - BaseUri = baseUri; - } - - /// - /// Initializes a new instance of the Kubernetes class. - /// - /// - /// 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) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - BaseUri = baseUri; - } - - /// - /// Initializes a new instance of the Kubernetes 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) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the Kubernetes class. - /// - /// - /// 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) - { - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the Kubernetes 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) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - BaseUri = baseUri; - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// Initializes a new instance of the Kubernetes class. - /// - /// - /// 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) - { - if (baseUri == null) - { - throw new System.ArgumentNullException("baseUri"); - } - if (credentials == null) - { - throw new System.ArgumentNullException("credentials"); - } - BaseUri = baseUri; - Credentials = credentials; - if (Credentials != null) - { - Credentials.InitializeServiceClient(this); - } - } - - /// - /// An optional partial-method to perform custom initialization. - /// - partial void CustomInitialize(); - /// - /// Initializes client properties. - /// - private void Initialize() - { - SerializationSettings = new JsonSerializerSettings - { - 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 - { - 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(); - } - /// - /// get available API versions - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIVersionsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResourcesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list objects of kind ComponentStatus - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListComponentStatusWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ComponentStatus - /// - /// - /// name of the ComponentStatus - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadComponentStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListConfigMapForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListEndpointsForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Event - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListEventForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListLimitRangeForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Namespace - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespaceWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Namespace - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespaceWithHttpMessagesAsync(V1Namespace body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Binding - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedBindingWithHttpMessagesAsync(V1Binding body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedConfigMapWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ConfigMap - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedConfigMapWithHttpMessagesAsync(V1ConfigMap body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedConfigMapWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ConfigMap - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedConfigMapWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedConfigMapWithHttpMessagesAsync(V1ConfigMap body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ConfigMap - /// - /// - /// - /// - /// name of the ConfigMap - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedConfigMapWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedConfigMapWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedEndpointsWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create Endpoints - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedEndpointsWithHttpMessagesAsync(V1Endpoints body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedEndpointsWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Endpoints - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedEndpointsWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedEndpointsWithHttpMessagesAsync(V1Endpoints body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete Endpoints - /// - /// - /// - /// - /// name of the Endpoints - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedEndpointsWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedEndpointsWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedEventWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create an Event - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedEventWithHttpMessagesAsync(V1Event body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedEventWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Event - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedEventWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedEventWithHttpMessagesAsync(V1Event body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete an Event - /// - /// - /// - /// - /// name of the Event - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedEventWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedEventWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedLimitRangeWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a LimitRange - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedLimitRangeWithHttpMessagesAsync(V1LimitRange body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedLimitRangeWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified LimitRange - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedLimitRangeWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedLimitRangeWithHttpMessagesAsync(V1LimitRange body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a LimitRange - /// - /// - /// - /// - /// name of the LimitRange - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedLimitRangeWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedLimitRangeWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedPersistentVolumeClaimWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PersistentVolumeClaim - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPersistentVolumeClaimWithHttpMessagesAsync(V1PersistentVolumeClaim body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedPersistentVolumeClaimWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PersistentVolumeClaim - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPersistentVolumeClaimWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPersistentVolumeClaimWithHttpMessagesAsync(V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PersistentVolumeClaim - /// - /// - /// - /// - /// name of the PersistentVolumeClaim - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedPersistentVolumeClaimWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPersistentVolumeClaimWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedPodWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Pod - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPodWithHttpMessagesAsync(V1Pod body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedPodWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPodWithHttpMessagesAsync(V1Pod body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Pod - /// - /// - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedPodWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPodWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to attach of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedPodAttachWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("container", container); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to attach of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedPodAttachWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("container", container); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create binding of a Pod - /// - /// - /// - /// - /// name of the Binding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPodBindingWithHttpMessagesAsync(V1Binding body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create eviction of a Pod - /// - /// - /// - /// - /// name of the Eviction - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPodEvictionWithHttpMessagesAsync(V1beta1Eviction body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to exec of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedPodExecWithHttpMessagesAsync(string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("command", command); - tracingParameters.Add("container", container); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to exec of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedPodExecWithHttpMessagesAsync(string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("command", command); - tracingParameters.Add("container", container); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodLogWithHttpMessagesAsync(string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("container", container); - tracingParameters.Add("follow", follow); - tracingParameters.Add("limitBytes", limitBytes); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (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}", System.Uri.EscapeDataString(pretty))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedPodPortforwardWithHttpMessagesAsync(string name, string namespaceParameter, int? ports = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedPodPortforwardWithHttpMessagesAsync(string name, string namespaceParameter, int? ports = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPutNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectDeleteNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectHeadNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPatchNamespacedPodProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPutNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectDeleteNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectHeadNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// name of the Pod - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPatchNamespacedPodProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPodStatusWithHttpMessagesAsync(V1Pod body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPodStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedPodTemplateWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PodTemplate - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPodTemplateWithHttpMessagesAsync(V1PodTemplate body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedPodTemplateWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PodTemplate - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodTemplateWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPodTemplateWithHttpMessagesAsync(V1PodTemplate body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PodTemplate - /// - /// - /// - /// - /// name of the PodTemplate - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedPodTemplateWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPodTemplateWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedReplicationControllerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ReplicationController - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedReplicationControllerWithHttpMessagesAsync(V1ReplicationController body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedReplicationControllerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ReplicationController - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicationControllerWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicationControllerWithHttpMessagesAsync(V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ReplicationController - /// - /// - /// - /// - /// name of the ReplicationController - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedReplicationControllerWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicationControllerWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicationControllerScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicationControllerScaleWithHttpMessagesAsync(V1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicationControllerScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicationControllerStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicationControllerStatusWithHttpMessagesAsync(V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicationControllerStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedResourceQuotaWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ResourceQuota - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedResourceQuotaWithHttpMessagesAsync(V1ResourceQuota body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedResourceQuotaWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ResourceQuota - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedResourceQuotaWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedResourceQuotaWithHttpMessagesAsync(V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ResourceQuota - /// - /// - /// - /// - /// name of the ResourceQuota - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedResourceQuotaWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedResourceQuotaWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedResourceQuotaStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedResourceQuotaStatusWithHttpMessagesAsync(V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedResourceQuotaStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedSecretWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Secret - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedSecretWithHttpMessagesAsync(V1Secret body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedSecretWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Secret - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedSecretWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedSecretWithHttpMessagesAsync(V1Secret body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Secret - /// - /// - /// - /// - /// name of the Secret - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedSecretWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedSecretWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedServiceAccountWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ServiceAccount - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedServiceAccountWithHttpMessagesAsync(V1ServiceAccount body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedServiceAccountWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ServiceAccount - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedServiceAccountWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedServiceAccountWithHttpMessagesAsync(V1ServiceAccount body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ServiceAccount - /// - /// - /// - /// - /// name of the ServiceAccount - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedServiceAccountWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedServiceAccountWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Service - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedServiceWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Service - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedServiceWithHttpMessagesAsync(V1Service body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedServiceWithHttpMessagesAsync(V1Service body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedServiceWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPutNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectDeleteNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectHeadNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPatchNamespacedServiceProxyWithHttpMessagesAsync(string name, string namespaceParameter, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPutNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectDeleteNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectHeadNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// name of the Service - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPatchNamespacedServiceProxyWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedServiceStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedServiceStatusWithHttpMessagesAsync(V1Service body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedServiceStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Namespace - /// - /// - /// name of the Namespace - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespaceWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespaceWithHttpMessagesAsync(V1Namespace body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespaceWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespaceWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace finalize of the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespaceFinalizeWithHttpMessagesAsync(V1Namespace body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read status of the specified Namespace - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespaceStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace status of the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespaceStatusWithHttpMessagesAsync(V1Namespace body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update status of the specified Namespace - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespaceStatusWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNodeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Node - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNodeWithHttpMessagesAsync(V1Node body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNodeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Node - /// - /// - /// name of the Node - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNodeWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNodeWithHttpMessagesAsync(V1Node body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNodeWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNodeWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPutNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectDeleteNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectHeadNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPatchNodeProxyWithHttpMessagesAsync(string name, string path = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectGetNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPutNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPostNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectDeleteNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectHeadNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ConnectPatchNodeProxyWithPathWithHttpMessagesAsync(string name, string path, string path1, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); - } - if (path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path"); - } - if (path1 == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "path1"); - } - // 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - List _queryParameters = new List(); - if (path1 != null) - { - _queryParameters.Add(string.Format("path={0}", System.Uri.EscapeDataString(path1))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read status of the specified Node - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNodeStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace status of the specified Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNodeStatusWithHttpMessagesAsync(V1Node body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update status of the specified Node - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNodeStatusWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPersistentVolumeClaimForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPersistentVolumeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PersistentVolume - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreatePersistentVolumeWithHttpMessagesAsync(V1PersistentVolume body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionPersistentVolumeWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PersistentVolume - /// - /// - /// name of the PersistentVolume - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadPersistentVolumeWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplacePersistentVolumeWithHttpMessagesAsync(V1PersistentVolume body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeletePersistentVolumeWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchPersistentVolumeWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read status of the specified PersistentVolume - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadPersistentVolumeStatusWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace status of the specified PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplacePersistentVolumeStatusWithHttpMessagesAsync(V1PersistentVolume body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update status of the specified PersistentVolume - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchPersistentVolumeStatusWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPodForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPodTemplateForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy GET requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyGETNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyGETNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PUT requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPUTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPUTNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy POST requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPOSTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPOSTNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy DELETE requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyDELETENamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyDELETENamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy HEAD requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyHEADNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyHEADNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PATCH requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPATCHNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPATCHNamespacedPod", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy GET requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyGETNamespacedPodWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PUT requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPUTNamespacedPodWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy POST requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPOSTNamespacedPodWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy DELETE requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyDELETENamespacedPodWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy HEAD requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyHEADNamespacedPodWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PATCH requests to Pod - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPATCHNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPATCHNamespacedPodWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy GET requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyGETNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyGETNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PUT requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPUTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPUTNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy POST requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPOSTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPOSTNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy DELETE requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyDELETENamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyDELETENamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy HEAD requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyHEADNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyHEADNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PATCH requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPATCHNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPATCHNamespacedService", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy GET requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyGETNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyGETNamespacedServiceWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PUT requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPUTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPUTNamespacedServiceWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy POST requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPOSTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPOSTNamespacedServiceWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy DELETE requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyDELETENamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyDELETENamespacedServiceWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy HEAD requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyHEADNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyHEADNamespacedServiceWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PATCH requests to Service - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPATCHNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPATCHNamespacedServiceWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/namespaces/{namespace}/services/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy GET requests to Node - /// - /// - /// name of the Node - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyGETNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyGETNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PUT requests to Node - /// - /// - /// name of the Node - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPUTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPUTNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy POST requests to Node - /// - /// - /// name of the Node - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPOSTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPOSTNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy DELETE requests to Node - /// - /// - /// name of the Node - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyDELETENodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyDELETENode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy HEAD requests to Node - /// - /// - /// name of the Node - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyHEADNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyHEADNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PATCH requests to Node - /// - /// - /// name of the Node - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPATCHNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPATCHNode", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy GET requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyGETNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyGETNodeWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PUT requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPUTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPUTNodeWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy POST requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPOSTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPOSTNodeWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy DELETE requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyDELETENodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyDELETENodeWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy HEAD requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyHEADNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyHEADNodeWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("HEAD"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// proxy PATCH requests to Node - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ProxyPATCHNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ProxyPATCHNodeWithPath", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "api/v1/proxy/nodes/{name}/{path}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{path}", System.Uri.EscapeDataString(path)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListReplicationControllerForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListResourceQuotaForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListSecretForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListServiceAccountForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Service - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListServiceForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available API versions - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIVersions1WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroupWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources1WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/v1alpha1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ExternalAdmissionHookConfiguration - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListExternalAdmissionHookConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create an ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateExternalAdmissionHookConfigurationWithHttpMessagesAsync(V1alpha1ExternalAdmissionHookConfiguration body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete collection of ExternalAdmissionHookConfiguration - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionExternalAdmissionHookConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ExternalAdmissionHookConfiguration - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadExternalAdmissionHookConfigurationWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceExternalAdmissionHookConfigurationWithHttpMessagesAsync(V1alpha1ExternalAdmissionHookConfiguration body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete an ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteExternalAdmissionHookConfigurationWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ExternalAdmissionHookConfiguration - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchExternalAdmissionHookConfigurationWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchExternalAdmissionHookConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind InitializerConfiguration - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListInitializerConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create an InitializerConfiguration - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateInitializerConfigurationWithHttpMessagesAsync(V1alpha1InitializerConfiguration body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete collection of InitializerConfiguration - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionInitializerConfigurationWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified InitializerConfiguration - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadInitializerConfigurationWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified InitializerConfiguration - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceInitializerConfigurationWithHttpMessagesAsync(V1alpha1InitializerConfiguration body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete an InitializerConfiguration - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteInitializerConfigurationWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified InitializerConfiguration - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchInitializerConfigurationWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchInitializerConfiguration", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup1WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources2WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListCustomResourceDefinitionWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/customresourcedefinitions").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a CustomResourceDefinition - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateCustomResourceDefinitionWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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/v1beta1/customresourcedefinitions").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionCustomResourceDefinitionWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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/v1beta1/customresourcedefinitions").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadCustomResourceDefinitionWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceCustomResourceDefinitionWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCustomResourceDefinitionWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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/v1beta1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchCustomResourceDefinitionWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/customresourcedefinitions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace status of the specified CustomResourceDefinition - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync(V1beta1CustomResourceDefinition body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/customresourcedefinitions/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup2WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources3WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListAPIServiceWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/apiservices").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create an APIService - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateAPIServiceWithHttpMessagesAsync(V1beta1APIService body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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/v1beta1/apiservices").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionAPIServiceWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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/v1beta1/apiservices").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified APIService - /// - /// - /// name of the APIService - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadAPIServiceWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceAPIServiceWithHttpMessagesAsync(V1beta1APIService body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete an APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteAPIServiceWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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/v1beta1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchAPIServiceWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/apiservices/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace status of the specified APIService - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceAPIServiceStatusWithHttpMessagesAsync(V1beta1APIService body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/apiservices/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup3WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources4WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListControllerRevisionForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/controllerrevisions").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListDeploymentForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/deployments").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedControllerRevisionWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ControllerRevision - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedControllerRevisionWithHttpMessagesAsync(V1beta1ControllerRevision body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta1/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedControllerRevisionWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ControllerRevision - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedControllerRevisionWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedControllerRevisionWithHttpMessagesAsync(V1beta1ControllerRevision body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ControllerRevision - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedControllerRevisionWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedControllerRevisionWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedDeploymentWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Deployment - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDeploymentWithHttpMessagesAsync(Appsv1beta1Deployment body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedDeploymentWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Deployment - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentWithHttpMessagesAsync(Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Deployment - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedDeploymentWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create rollback of a Deployment - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDeploymentRollbackWithHttpMessagesAsync(Appsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDeploymentRollback", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentScaleWithHttpMessagesAsync(Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentStatusWithHttpMessagesAsync(Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedStatefulSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a StatefulSet - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedStatefulSetWithHttpMessagesAsync(V1beta1StatefulSet body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta1/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedStatefulSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified StatefulSet - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedStatefulSetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedStatefulSetWithHttpMessagesAsync(V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a StatefulSet - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedStatefulSetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedStatefulSetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedStatefulSetScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedStatefulSetScaleWithHttpMessagesAsync(Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedStatefulSetScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedStatefulSetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta1/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedStatefulSetStatusWithHttpMessagesAsync(V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedStatefulSetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListStatefulSetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/statefulsets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources5WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/apps/v1beta2/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListControllerRevisionForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListControllerRevisionForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/controllerrevisions").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListDaemonSetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta2/daemonsets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListDeploymentForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListDeploymentForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/deployments").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedControllerRevision1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ControllerRevision - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedControllerRevision1WithHttpMessagesAsync(V1beta2ControllerRevision body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedControllerRevision1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ControllerRevision - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedControllerRevision1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedControllerRevision1WithHttpMessagesAsync(V1beta2ControllerRevision body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ControllerRevision - /// - /// - /// - /// - /// name of the ControllerRevision - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedControllerRevision1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedControllerRevision1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedControllerRevision1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedDaemonSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta2/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a DaemonSet - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDaemonSetWithHttpMessagesAsync(V1beta2DaemonSet body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta2/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedDaemonSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta2/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified DaemonSet - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDaemonSetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta2/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDaemonSetWithHttpMessagesAsync(V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta2/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a DaemonSet - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedDaemonSetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta2/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDaemonSetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta2/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDaemonSetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta2/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDaemonSetStatusWithHttpMessagesAsync(V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta2/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDaemonSetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta2/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedDeployment1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Deployment - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDeployment1WithHttpMessagesAsync(V1beta2Deployment body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedDeployment1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Deployment - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeployment1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeployment1WithHttpMessagesAsync(V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Deployment - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedDeployment1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeployment1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeployment1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentScale1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedDeploymentScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentScale1WithHttpMessagesAsync(V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeploymentScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentScale1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeploymentScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedDeploymentStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentStatus1WithHttpMessagesAsync(V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeploymentStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeploymentStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedReplicaSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta2/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ReplicaSet - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedReplicaSetWithHttpMessagesAsync(V1beta2ReplicaSet body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta2/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedReplicaSetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta2/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ReplicaSet - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicaSetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta2/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicaSetWithHttpMessagesAsync(V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta2/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ReplicaSet - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedReplicaSetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta2/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicaSetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta2/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicaSetScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta2/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicaSetScaleWithHttpMessagesAsync(V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta2/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicaSetScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta2/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicaSetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta2/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicaSetStatusWithHttpMessagesAsync(V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta2/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicaSetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta2/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedStatefulSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a StatefulSet - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedStatefulSet1WithHttpMessagesAsync(V1beta2StatefulSet body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedStatefulSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified StatefulSet - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedStatefulSet1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedStatefulSet1WithHttpMessagesAsync(V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a StatefulSet - /// - /// - /// - /// - /// name of the StatefulSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedStatefulSet1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedStatefulSet1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedStatefulSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedStatefulSetScale1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedStatefulSetScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedStatefulSetScale1WithHttpMessagesAsync(V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedStatefulSetScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedStatefulSetScale1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedStatefulSetScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedStatefulSetStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedStatefulSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedStatefulSetStatus1WithHttpMessagesAsync(V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedStatefulSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedStatefulSetStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedStatefulSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListReplicaSetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta2/replicasets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListStatefulSetForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListStatefulSetForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/apps/v1beta2/statefulsets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup4WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources6WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/authentication.k8s.io/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a TokenReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateTokenReviewWithHttpMessagesAsync(V1TokenReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources7WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/authentication.k8s.io/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a TokenReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateTokenReview1WithHttpMessagesAsync(V1beta1TokenReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateTokenReview1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authentication.k8s.io/v1beta1/tokenreviews").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup5WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources8WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/authorization.k8s.io/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedLocalSubjectAccessReviewWithHttpMessagesAsync(V1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateSelfSubjectAccessReviewWithHttpMessagesAsync(V1SelfSubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateSelfSubjectRulesReviewWithHttpMessagesAsync(V1SelfSubjectRulesReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a SubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateSubjectAccessReviewWithHttpMessagesAsync(V1SubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources9WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/authorization.k8s.io/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedLocalSubjectAccessReview1WithHttpMessagesAsync(V1beta1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedLocalSubjectAccessReview1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateSelfSubjectAccessReview1WithHttpMessagesAsync(V1beta1SelfSubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateSelfSubjectAccessReview1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateSelfSubjectRulesReview1WithHttpMessagesAsync(V1beta1SelfSubjectRulesReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateSelfSubjectRulesReview1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a SubjectAccessReview - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateSubjectAccessReview1WithHttpMessagesAsync(V1beta1SubjectAccessReview body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateSubjectAccessReview1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/authorization.k8s.io/v1beta1/subjectaccessreviews").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup6WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources10WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/autoscaling/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListHorizontalPodAutoscalerForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(V1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources11WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/autoscaling/v2beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListHorizontalPodAutoscalerForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(V2beta1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified HorizontalPodAutoscaler - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a HorizontalPodAutoscaler - /// - /// - /// - /// - /// name of the HorizontalPodAutoscaler - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup7WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources12WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/batch/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Job - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListJobForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Job - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedJobWithHttpMessagesAsync(V1Job body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Job - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedJobWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedJobWithHttpMessagesAsync(V1Job body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Job - /// - /// - /// - /// - /// name of the Job - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedJobWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedJobWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedJobStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedJobStatusWithHttpMessagesAsync(V1Job body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedJobStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources13WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/batch/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListCronJobForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/cronjobs").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedCronJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a CronJob - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedCronJobWithHttpMessagesAsync(V1beta1CronJob body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedCronJobWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedCronJobWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedCronJobWithHttpMessagesAsync(V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a CronJob - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedCronJobWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedCronJobWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedCronJobStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedCronJobStatusWithHttpMessagesAsync(V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedCronJobStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources14WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/batch/v2alpha1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListCronJobForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v2alpha1/cronjobs").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedCronJob1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v2alpha1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a CronJob - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedCronJob1WithHttpMessagesAsync(V2alpha1CronJob body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v2alpha1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedCronJob1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v2alpha1/namespaces/{namespace}/cronjobs").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified CronJob - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedCronJob1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v2alpha1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedCronJob1WithHttpMessagesAsync(V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v2alpha1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a CronJob - /// - /// - /// - /// - /// name of the CronJob - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedCronJob1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v2alpha1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedCronJob1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v2alpha1/namespaces/{namespace}/cronjobs/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedCronJobStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedCronJobStatus1WithHttpMessagesAsync(V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedCronJobStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup8WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources15WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/certificates.k8s.io/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListCertificateSigningRequestWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/certificatesigningrequests").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a CertificateSigningRequest - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateCertificateSigningRequestWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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/v1beta1/certificatesigningrequests").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionCertificateSigningRequestWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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/v1beta1/certificatesigningrequests").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadCertificateSigningRequestWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceCertificateSigningRequestWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCertificateSigningRequestWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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/v1beta1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchCertificateSigningRequestWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/certificatesigningrequests/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace approval of the specified CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/certificatesigningrequests/{name}/approval").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace status of the specified CertificateSigningRequest - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync(V1beta1CertificateSigningRequest body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/certificatesigningrequests/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup9WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/extensions/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources16WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/extensions/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListDaemonSetForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListDaemonSetForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/daemonsets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListDeploymentForAllNamespaces2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListDeploymentForAllNamespaces2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/deployments").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListIngressForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/extensions/v1beta1/ingresses").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedDaemonSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a DaemonSet - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDaemonSet1WithHttpMessagesAsync(V1beta1DaemonSet body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedDaemonSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified DaemonSet - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDaemonSet1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDaemonSet1WithHttpMessagesAsync(V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a DaemonSet - /// - /// - /// - /// - /// name of the DaemonSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedDaemonSet1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDaemonSet1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDaemonSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDaemonSetStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedDaemonSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDaemonSetStatus1WithHttpMessagesAsync(V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDaemonSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDaemonSetStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDaemonSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedDeployment2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Deployment - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDeployment2WithHttpMessagesAsync(Extensionsv1beta1Deployment body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedDeployment2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Deployment - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeployment2WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeployment2WithHttpMessagesAsync(Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Deployment - /// - /// - /// - /// - /// name of the Deployment - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedDeployment2WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeployment2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeployment2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create rollback of a Deployment - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedDeploymentRollback1WithHttpMessagesAsync(Extensionsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedDeploymentRollback1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentScale2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedDeploymentScale2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentScale2WithHttpMessagesAsync(Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeploymentScale2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentScale2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeploymentScale2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedDeploymentStatus2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedDeploymentStatus2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedDeploymentStatus2WithHttpMessagesAsync(Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedDeploymentStatus2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedDeploymentStatus2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedDeploymentStatus2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedIngressWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/extensions/v1beta1/namespaces/{namespace}/ingresses").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create an Ingress - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedIngressWithHttpMessagesAsync(V1beta1Ingress body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/extensions/v1beta1/namespaces/{namespace}/ingresses").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedIngressWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/extensions/v1beta1/namespaces/{namespace}/ingresses").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified Ingress - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedIngressWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedIngressWithHttpMessagesAsync(V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete an Ingress - /// - /// - /// - /// - /// name of the Ingress - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedIngressWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedIngressWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedIngressStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedIngressStatusWithHttpMessagesAsync(V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedIngressStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedNetworkPolicyWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/extensions/v1beta1/namespaces/{namespace}/networkpolicies").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a NetworkPolicy - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedNetworkPolicyWithHttpMessagesAsync(V1beta1NetworkPolicy body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/extensions/v1beta1/namespaces/{namespace}/networkpolicies").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedNetworkPolicyWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/extensions/v1beta1/namespaces/{namespace}/networkpolicies").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified NetworkPolicy - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedNetworkPolicyWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedNetworkPolicyWithHttpMessagesAsync(V1beta1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a NetworkPolicy - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedNetworkPolicyWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedNetworkPolicyWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedReplicaSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ReplicaSet - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedReplicaSet1WithHttpMessagesAsync(V1beta1ReplicaSet body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedReplicaSet1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ReplicaSet - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicaSet1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicaSet1WithHttpMessagesAsync(V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ReplicaSet - /// - /// - /// - /// - /// name of the ReplicaSet - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedReplicaSet1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicaSet1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicaSet1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicaSetScale1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedReplicaSetScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicaSetScale1WithHttpMessagesAsync(Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicaSetScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicaSetScale1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicaSetScale1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicaSetStatus1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedReplicaSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicaSetStatus1WithHttpMessagesAsync(V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicaSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicaSetStatus1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicaSetStatus1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read scale of the specified ReplicationControllerDummy - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedReplicationControllerDummyScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace scale of the specified ReplicationControllerDummy - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedReplicationControllerDummyScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update scale of the specified ReplicationControllerDummy - /// - /// - /// - /// - /// name of the Scale - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedReplicationControllerDummyScale", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNetworkPolicyForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/extensions/v1beta1/networkpolicies").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPodSecurityPolicyWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/extensions/v1beta1/podsecuritypolicies").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PodSecurityPolicy - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreatePodSecurityPolicyWithHttpMessagesAsync(V1beta1PodSecurityPolicy body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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/extensions/v1beta1/podsecuritypolicies").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionPodSecurityPolicyWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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/extensions/v1beta1/podsecuritypolicies").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadPodSecurityPolicyWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/extensions/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified PodSecurityPolicy - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplacePodSecurityPolicyWithHttpMessagesAsync(V1beta1PodSecurityPolicy body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/extensions/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PodSecurityPolicy - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeletePodSecurityPolicyWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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/extensions/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified PodSecurityPolicy - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchPodSecurityPolicyWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/extensions/v1beta1/podsecuritypolicies/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListReplicaSetForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListReplicaSetForAllNamespaces1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/extensions/v1beta1/replicasets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup10WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/networking.k8s.io/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources17WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/networking.k8s.io/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedNetworkPolicy1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a NetworkPolicy - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedNetworkPolicy1WithHttpMessagesAsync(V1NetworkPolicy body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedNetworkPolicy1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified NetworkPolicy - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedNetworkPolicy1WithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedNetworkPolicy1WithHttpMessagesAsync(V1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a NetworkPolicy - /// - /// - /// - /// - /// name of the NetworkPolicy - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedNetworkPolicy1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedNetworkPolicy1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedNetworkPolicy1", 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNetworkPolicyForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNetworkPolicyForAllNamespaces1", 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup11WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/policy/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources18WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/policy/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedPodDisruptionBudgetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PodDisruptionBudget - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPodDisruptionBudgetWithHttpMessagesAsync(V1beta1PodDisruptionBudget body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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/v1beta1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedPodDisruptionBudgetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/poddisruptionbudgets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PodDisruptionBudget - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodDisruptionBudgetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPodDisruptionBudgetWithHttpMessagesAsync(V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PodDisruptionBudget - /// - /// - /// - /// - /// name of the PodDisruptionBudget - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedPodDisruptionBudgetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPodDisruptionBudgetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPodDisruptionBudgetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1beta1/poddisruptionbudgets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup12WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/rbac.authorization.k8s.io/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources19WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/rbac.authorization.k8s.io/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterRoleBindingWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterRoleBindingWithHttpMessagesAsync(V1ClusterRoleBinding body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionClusterRoleBindingWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadClusterRoleBindingWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterRoleBindingWithHttpMessagesAsync(V1ClusterRoleBinding body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterRoleBindingWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchClusterRoleBindingWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterRoleWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterRoleWithHttpMessagesAsync(V1ClusterRole body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionClusterRoleWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadClusterRoleWithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterRoleWithHttpMessagesAsync(V1ClusterRole body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterRoleWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchClusterRoleWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedRoleBindingWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a RoleBinding - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedRoleBindingWithHttpMessagesAsync(V1RoleBinding body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedRoleBindingWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedRoleBindingWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedRoleBindingWithHttpMessagesAsync(V1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a RoleBinding - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedRoleBindingWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedRoleBindingWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedRoleWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Role - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedRoleWithHttpMessagesAsync(V1Role body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedRoleWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedRoleWithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedRoleWithHttpMessagesAsync(V1Role body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Role - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedRoleWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedRoleWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListRoleBindingForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListRoleForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources20WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/rbac.authorization.k8s.io/v1alpha1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterRoleBinding1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterRoleBinding1WithHttpMessagesAsync(V1alpha1ClusterRoleBinding body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionClusterRoleBinding1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadClusterRoleBinding1WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterRoleBinding1WithHttpMessagesAsync(V1alpha1ClusterRoleBinding body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterRoleBinding1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchClusterRoleBinding1WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterRole1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterRole1WithHttpMessagesAsync(V1alpha1ClusterRole body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionClusterRole1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadClusterRole1WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterRole1WithHttpMessagesAsync(V1alpha1ClusterRole body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterRole1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchClusterRole1WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedRoleBinding1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a RoleBinding - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedRoleBinding1WithHttpMessagesAsync(V1alpha1RoleBinding body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedRoleBinding1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedRoleBinding1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedRoleBinding1WithHttpMessagesAsync(V1alpha1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a RoleBinding - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedRoleBinding1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedRoleBinding1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedRole1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Role - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedRole1WithHttpMessagesAsync(V1alpha1Role body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedRole1WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedRole1WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedRole1WithHttpMessagesAsync(V1alpha1Role body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Role - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedRole1WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - 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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedRole1WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListRoleBindingForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListRoleForAllNamespaces1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources21WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/rbac.authorization.k8s.io/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterRoleBinding2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterRoleBinding2WithHttpMessagesAsync(V1beta1ClusterRoleBinding body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionClusterRoleBinding2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ClusterRoleBinding - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadClusterRoleBinding2WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterRoleBinding2WithHttpMessagesAsync(V1beta1ClusterRoleBinding body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterRoleBinding2WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchClusterRoleBinding2WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterRole2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a ClusterRole - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterRole2WithHttpMessagesAsync(V1beta1ClusterRole body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionClusterRole2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified ClusterRole - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadClusterRole2WithHttpMessagesAsync(string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterRole2WithHttpMessagesAsync(V1beta1ClusterRole body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterRole2WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchClusterRole2WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchClusterRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedRoleBinding2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a RoleBinding - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedRoleBinding2WithHttpMessagesAsync(V1beta1RoleBinding body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedRoleBinding2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedRoleBinding2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedRoleBinding2WithHttpMessagesAsync(V1beta1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a RoleBinding - /// - /// - /// - /// - /// name of the RoleBinding - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedRoleBinding2WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedRoleBinding2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedRoleBinding2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedRole2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a Role - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedRole2WithHttpMessagesAsync(V1beta1Role body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedRole2WithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedRole2WithHttpMessagesAsync(string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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, "ReadNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedRole2WithHttpMessagesAsync(V1beta1Role body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a Role - /// - /// - /// - /// - /// name of the Role - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedRole2WithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedRole2WithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedRole2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListRoleBindingForAllNamespaces2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRoleBindingForAllNamespaces2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/rolebindings").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind Role - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListRoleForAllNamespaces2WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListRoleForAllNamespaces2", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/rbac.authorization.k8s.io/v1beta1/roles").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup13WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/scheduling.k8s.io/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources22WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/scheduling.k8s.io/v1alpha1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPriorityClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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/v1alpha1/priorityclasses").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PriorityClass - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreatePriorityClassWithHttpMessagesAsync(V1alpha1PriorityClass body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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/v1alpha1/priorityclasses").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionPriorityClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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/v1alpha1/priorityclasses").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PriorityClass - /// - /// - /// name of the PriorityClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadPriorityClassWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified PriorityClass - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplacePriorityClassWithHttpMessagesAsync(V1alpha1PriorityClass body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PriorityClass - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeletePriorityClassWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified PriorityClass - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchPriorityClassWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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/v1alpha1/priorityclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup14WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/settings.k8s.io/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources23WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/settings.k8s.io/v1alpha1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedPodPresetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a PodPreset - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedPodPresetWithHttpMessagesAsync(V1alpha1PodPreset body, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - if (namespaceParameter == null) - { - throw new 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete collection of PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionNamespacedPodPresetWithHttpMessagesAsync(string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (namespaceParameter == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "namespaceParameter"); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets").ToString(); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified PodPreset - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadNamespacedPodPresetWithHttpMessagesAsync(string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified PodPreset - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedPodPresetWithHttpMessagesAsync(V1alpha1PodPreset body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a PodPreset - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedPodPresetWithHttpMessagesAsync(V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified PodPreset - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchNamespacedPodPresetWithHttpMessagesAsync(object body, string name, string namespaceParameter, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchNamespacedPodPreset", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListPodPresetForAllNamespacesWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListPodPresetForAllNamespaces", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/settings.k8s.io/v1alpha1/podpresets").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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 objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get information of a group - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIGroup15WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/storage.k8s.io/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources24WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/storage.k8s.io/v1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListStorageClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a StorageClass - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateStorageClassWithHttpMessagesAsync(V1StorageClass body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - 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(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionStorageClassWithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - 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(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified StorageClass - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadStorageClassWithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - 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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceStorageClassWithHttpMessagesAsync(V1StorageClass body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteStorageClassWithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchStorageClassWithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get available resources - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetAPIResources25WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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/storage.k8s.io/v1beta1/").ToString(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListStorageClass1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// create a StorageClass - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateStorageClass1WithHttpMessagesAsync(V1beta1StorageClass body, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("body", body); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CreateStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses").ToString(); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteCollectionStorageClass1WithHttpMessagesAsync(string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("continueParameter", continueParameter); - tracingParameters.Add("fieldSelector", fieldSelector); - tracingParameters.Add("includeUninitialized", includeUninitialized); - tracingParameters.Add("labelSelector", labelSelector); - tracingParameters.Add("limit", limit); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("timeoutSeconds", timeoutSeconds); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteCollectionStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses").ToString(); - List _queryParameters = new List(); - 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 (includeUninitialized != null) - { - _queryParameters.Add(string.Format("includeUninitialized={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(includeUninitialized, 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 (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// read the specified StorageClass - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReadStorageClass1WithHttpMessagesAsync(string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("exact", exact); - tracingParameters.Add("export", export); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReadStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (exact != null) - { - _queryParameters.Add(string.Format("exact={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(exact, SerializationSettings).Trim('"')))); - } - if (export != null) - { - _queryParameters.Add(string.Format("export={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(export, SerializationSettings).Trim('"')))); - } - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// replace the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceStorageClass1WithHttpMessagesAsync(V1beta1StorageClass body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - if (body != null) - { - body.Validate(); - } - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ReplaceStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// delete a StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteStorageClass1WithHttpMessagesAsync(V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("name", name); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "DeleteStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// partially update the specified StorageClass - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> PatchStorageClass1WithHttpMessagesAsync(object body, string name, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "PatchStorageClass1", tracingParameters); - } - // Construct URL - var _baseUrl = BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/storage.k8s.io/v1beta1/storageclasses/{name}").ToString(); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PATCH"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json-patch+json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task LogFileListHandlerWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// path to the log - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task LogFileHandlerWithHttpMessagesAsync(string logpath, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(logpath)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// get the code version - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetCodeWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // 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(); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateClusterCustomObjectWithHttpMessagesAsync(object body, string group, string version, string plural, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// A selector to restrict the list of returned objects by their labels. - /// Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListClusterCustomObjectWithHttpMessagesAsync(string group, string version, string plural, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("labelSelector", labelSelector); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - List _queryParameters = new List(); - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> CreateNamespacedCustomObjectWithHttpMessagesAsync(object body, string group, string version, string namespaceParameter, string plural, string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("pretty", pretty); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - List _queryParameters = new List(); - if (pretty != null) - { - _queryParameters.Add(string.Format("pretty={0}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 201) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// A selector to restrict the list of returned objects by their labels. - /// Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ListNamespacedCustomObjectWithHttpMessagesAsync(string group, string version, string namespaceParameter, string plural, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("labelSelector", labelSelector); - tracingParameters.Add("resourceVersion", resourceVersion); - tracingParameters.Add("watch", watch); - tracingParameters.Add("pretty", pretty); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("namespaceParameter", namespaceParameter); - tracingParameters.Add("plural", plural); - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - List _queryParameters = new List(); - if (labelSelector != null) - { - _queryParameters.Add(string.Format("labelSelector={0}", System.Uri.EscapeDataString(labelSelector))); - } - if (resourceVersion != null) - { - _queryParameters.Add(string.Format("resourceVersion={0}", System.Uri.EscapeDataString(resourceVersion))); - } - 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}", System.Uri.EscapeDataString(pretty))); - } - if (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceClusterCustomObjectWithHttpMessagesAsync(object body, string group, string version, string plural, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteClusterCustomObjectWithHttpMessagesAsync(V1DeleteOptions body, string group, string version, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - tracingParameters.Add("group", group); - tracingParameters.Add("version", version); - tracingParameters.Add("plural", plural); - tracingParameters.Add("name", name); - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetClusterCustomObjectWithHttpMessagesAsync(string group, string version, string plural, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> ReplaceNamespacedCustomObjectWithHttpMessagesAsync(object body, string group, string version, string namespaceParameter, string plural, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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. - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> DeleteNamespacedCustomObjectWithHttpMessagesAsync(V1DeleteOptions body, string group, string version, string namespaceParameter, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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("gracePeriodSeconds", gracePeriodSeconds); - tracingParameters.Add("orphanDependents", orphanDependents); - tracingParameters.Add("propagationPolicy", propagationPolicy); - 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, "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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - 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 (_queryParameters.Count > 0) - { - _url += "?" + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - /// - /// 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 - /// - /// - /// Headers that will be added to request. - /// - /// - /// The cancellation token. - /// - /// - /// Thrown when the operation returned an invalid status code - /// - /// - /// Thrown when unable to deserialize the response - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// - /// - /// A response object containing the response body and response headers. - /// - public async Task> GetNamespacedCustomObjectWithHttpMessagesAsync(string group, string version, string namespaceParameter, string plural, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - 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}", System.Uri.EscapeDataString(group)); - _url = _url.Replace("{version}", System.Uri.EscapeDataString(version)); - _url = _url.Replace("{namespace}", System.Uri.EscapeDataString(namespaceParameter)); - _url = _url.Replace("{plural}", System.Uri.EscapeDataString(plural)); - _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // 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); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 401) - { - var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - } - else { - _responseContent = string.Empty; - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.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(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/src/generated/KubernetesExtensions.cs b/src/generated/KubernetesExtensions.cs deleted file mode 100644 index 0c19cd0a2..000000000 --- a/src/generated/KubernetesExtensions.cs +++ /dev/null @@ -1,51989 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s -{ - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for Kubernetes. - /// - public static partial class KubernetesExtensions - { - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - public static V1APIVersions GetAPIVersions(this IKubernetes operations) - { - return operations.GetAPIVersionsAsync().GetAwaiter().GetResult(); - } - - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources(this IKubernetes operations) - { - return operations.GetAPIResourcesAsync().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list objects of kind ComponentStatus - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListComponentStatusAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list objects of kind ComponentStatus - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListComponentStatusAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListComponentStatusWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, 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, string pretty = default(string)) - { - return operations.ReadComponentStatusAsync(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadComponentStatusAsync(this IKubernetes operations, string name, string pretty = default(string), 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. - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListConfigMapForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ConfigMap - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListConfigMapForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListConfigMapForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListEndpointsForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Endpoints - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListEndpointsForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEndpointsForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Event - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1EventList ListEventForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListEventForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Event - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListEventForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListEventForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListLimitRangeForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind LimitRange - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListLimitRangeForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListLimitRangeForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Namespace - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespaceAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Namespace - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespaceAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespaceWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace CreateNamespace(this IKubernetes operations, V1Namespace body, string pretty = default(string)) - { - return operations.CreateNamespaceAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespaceAsync(this IKubernetes operations, V1Namespace body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespaceWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Binding CreateNamespacedBinding(this IKubernetes operations, V1Binding body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedBindingAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Binding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedBindingAsync(this IKubernetes operations, V1Binding body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedBindingWithHttpMessagesAsync(body, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedConfigMapAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedConfigMapAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedConfigMapWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap CreateNamespacedConfigMap(this IKubernetes operations, V1ConfigMap body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedConfigMapAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ConfigMap - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedConfigMapAsync(this IKubernetes operations, V1ConfigMap body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedConfigMapWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedConfigMap(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedConfigMapAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedConfigMapAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedConfigMapWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap ReadNamespacedConfigMap(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedConfigMapAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedConfigMapAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedConfigMapWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap ReplaceNamespacedConfigMap(this IKubernetes operations, V1ConfigMap body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedConfigMapAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedConfigMapAsync(this IKubernetes operations, V1ConfigMap body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedConfigMapWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedConfigMap(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedConfigMapAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedConfigMapAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedConfigMapWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ConfigMap PatchNamespacedConfigMap(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedConfigMapAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedConfigMapAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedConfigMapWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedEndpointsAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedEndpointsAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEndpointsWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints CreateNamespacedEndpoints(this IKubernetes operations, V1Endpoints body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedEndpointsAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create Endpoints - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedEndpointsAsync(this IKubernetes operations, V1Endpoints body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEndpointsWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedEndpoints(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedEndpointsAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedEndpointsAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEndpointsWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints ReadNamespacedEndpoints(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedEndpointsAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedEndpointsAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEndpointsWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints ReplaceNamespacedEndpoints(this IKubernetes operations, V1Endpoints body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedEndpointsAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedEndpointsAsync(this IKubernetes operations, V1Endpoints body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEndpointsWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEndpoints(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedEndpointsAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedEndpointsAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEndpointsWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Endpoints PatchNamespacedEndpoints(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedEndpointsAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedEndpointsAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEndpointsWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1EventList ListNamespacedEvent(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedEventAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedEventAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedEventWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Event CreateNamespacedEvent(this IKubernetes operations, V1Event body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedEventAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create an Event - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedEventAsync(this IKubernetes operations, V1Event body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedEventWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedEvent(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedEventAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedEventAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedEventWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Event ReadNamespacedEvent(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedEventAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedEventAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedEventWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Event ReplaceNamespacedEvent(this IKubernetes operations, V1Event body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedEventAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedEventAsync(this IKubernetes operations, V1Event body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedEventWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedEvent(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedEventAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedEventAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedEventWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Event PatchNamespacedEvent(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedEventAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedEventAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedEventWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedLimitRangeAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedLimitRangeAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedLimitRangeWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange CreateNamespacedLimitRange(this IKubernetes operations, V1LimitRange body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedLimitRangeAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a LimitRange - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedLimitRangeAsync(this IKubernetes operations, V1LimitRange body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedLimitRangeWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedLimitRange(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedLimitRangeAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedLimitRangeAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedLimitRangeWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange ReadNamespacedLimitRange(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedLimitRangeAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedLimitRangeAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedLimitRangeWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange ReplaceNamespacedLimitRange(this IKubernetes operations, V1LimitRange body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedLimitRangeAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedLimitRangeAsync(this IKubernetes operations, V1LimitRange body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedLimitRangeWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedLimitRange(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedLimitRangeAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedLimitRangeAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedLimitRangeWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LimitRange PatchNamespacedLimitRange(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedLimitRangeAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedLimitRangeAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedLimitRangeWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedPersistentVolumeClaimAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPersistentVolumeClaimWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim CreateNamespacedPersistentVolumeClaim(this IKubernetes operations, V1PersistentVolumeClaim body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPersistentVolumeClaimAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PersistentVolumeClaim - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, V1PersistentVolumeClaim body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPersistentVolumeClaimWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedPersistentVolumeClaim(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedPersistentVolumeClaimAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPersistentVolumeClaimWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReadNamespacedPersistentVolumeClaim(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedPersistentVolumeClaimAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPersistentVolumeClaimWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReplaceNamespacedPersistentVolumeClaim(this IKubernetes operations, V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPersistentVolumeClaimAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPersistentVolumeClaimWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPersistentVolumeClaim(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedPersistentVolumeClaimAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPersistentVolumeClaimWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim PatchNamespacedPersistentVolumeClaim(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPersistentVolumeClaimAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPersistentVolumeClaimAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPersistentVolumeClaimWithHttpMessagesAsync(body, name, namespaceParameter, 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, string pretty = default(string)) - { - return operations.ReadNamespacedPersistentVolumeClaimStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPersistentVolumeClaimStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim ReplaceNamespacedPersistentVolumeClaimStatus(this IKubernetes operations, V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPersistentVolumeClaimStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPersistentVolumeClaimStatusAsync(this IKubernetes operations, V1PersistentVolumeClaim body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolumeClaim PatchNamespacedPersistentVolumeClaimStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPersistentVolumeClaimStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPersistentVolumeClaimStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPersistentVolumeClaimStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedPodAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedPodAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod CreateNamespacedPod(this IKubernetes operations, V1Pod body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPodAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPodAsync(this IKubernetes operations, V1Pod body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedPod(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedPodAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedPodAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReadNamespacedPod(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedPodAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReplaceNamespacedPod(this IKubernetes operations, V1Pod body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPodAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPodAsync(this IKubernetes operations, V1Pod body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPod(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedPodAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedPodAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod PatchNamespacedPod(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPodAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPodAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodWithHttpMessagesAsync(body, name, namespaceParameter, 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 Pod - /// - /// - /// 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 string ConnectGetNamespacedPodAttach(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?)) - { - return operations.ConnectGetNamespacedPodAttachAsync(name, namespaceParameter, container, stderr, stdin, stdout, tty).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to attach of 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 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 cancellation token. - /// - public static async Task ConnectGetNamespacedPodAttachAsync(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedPodAttachWithHttpMessagesAsync(name, namespaceParameter, container, stderr, stdin, stdout, tty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to attach of 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 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 string ConnectPostNamespacedPodAttach(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?)) - { - return operations.ConnectPostNamespacedPodAttachAsync(name, namespaceParameter, container, stderr, stdin, stdout, tty).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to attach of 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 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 cancellation token. - /// - public static async Task ConnectPostNamespacedPodAttachAsync(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedPodAttachWithHttpMessagesAsync(name, namespaceParameter, container, stderr, stdin, stdout, tty, null, cancellationToken).ConfigureAwait(false)) - { - 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Binding CreateNamespacedPodBinding(this IKubernetes operations, V1Binding body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPodBindingAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPodBindingAsync(this IKubernetes operations, V1Binding body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodBindingWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Eviction CreateNamespacedPodEviction(this IKubernetes operations, V1beta1Eviction body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPodEvictionAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPodEvictionAsync(this IKubernetes operations, V1beta1Eviction body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodEvictionWithHttpMessagesAsync(body, name, namespaceParameter, 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 Pod - /// - /// - /// 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 string ConnectGetNamespacedPodExec(this IKubernetes operations, string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?)) - { - return operations.ConnectGetNamespacedPodExecAsync(name, namespaceParameter, command, container, stderr, stdin, stdout, tty).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectGetNamespacedPodExecAsync(this IKubernetes operations, string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedPodExecWithHttpMessagesAsync(name, namespaceParameter, command, container, stderr, stdin, stdout, tty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPostNamespacedPodExec(this IKubernetes operations, string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?)) - { - return operations.ConnectPostNamespacedPodExecAsync(name, namespaceParameter, command, container, stderr, stdin, stdout, tty).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to exec of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPostNamespacedPodExecAsync(this IKubernetes operations, string name, string namespaceParameter, string command = default(string), string container = default(string), bool? stderr = default(bool?), bool? stdin = default(bool?), bool? stdout = default(bool?), bool? tty = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedPodExecWithHttpMessagesAsync(name, namespaceParameter, command, container, stderr, stdin, stdout, tty, null, cancellationToken).ConfigureAwait(false)) - { - 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. - /// - /// - /// 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 string ReadNamespacedPodLog(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?)) - { - return operations.ReadNamespacedPodLogAsync(name, namespaceParameter, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps).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. - /// - /// - /// 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 cancellation token. - /// - public static async Task ReadNamespacedPodLogAsync(this IKubernetes operations, string name, string namespaceParameter, string container = default(string), bool? follow = default(bool?), int? limitBytes = default(int?), string pretty = default(string), bool? previous = default(bool?), int? sinceSeconds = default(int?), int? tailLines = default(int?), bool? timestamps = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodLogWithHttpMessagesAsync(name, namespaceParameter, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - public static string ConnectGetNamespacedPodPortforward(this IKubernetes operations, string name, string namespaceParameter, int? ports = default(int?)) - { - return operations.ConnectGetNamespacedPodPortforwardAsync(name, namespaceParameter, ports).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// The cancellation token. - /// - public static async Task ConnectGetNamespacedPodPortforwardAsync(this IKubernetes operations, string name, string namespaceParameter, int? ports = default(int?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedPodPortforwardWithHttpMessagesAsync(name, namespaceParameter, ports, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - public static string ConnectPostNamespacedPodPortforward(this IKubernetes operations, string name, string namespaceParameter, int? ports = default(int?)) - { - return operations.ConnectPostNamespacedPodPortforwardAsync(name, namespaceParameter, ports).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to portforward of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// List of ports to forward Required when using WebSockets - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPostNamespacedPodPortforwardAsync(this IKubernetes operations, string name, string namespaceParameter, int? ports = default(int?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedPodPortforwardWithHttpMessagesAsync(name, namespaceParameter, ports, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectGetNamespacedPodProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectGetNamespacedPodProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectGetNamespacedPodProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedPodProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPutNamespacedPodProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectPutNamespacedPodProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPutNamespacedPodProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPutNamespacedPodProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPostNamespacedPodProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectPostNamespacedPodProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPostNamespacedPodProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedPodProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectDeleteNamespacedPodProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectDeleteNamespacedPodProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectDeleteNamespacedPodProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectDeleteNamespacedPodProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectHeadNamespacedPodProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectHeadNamespacedPodProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectHeadNamespacedPodProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectHeadNamespacedPodProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPatchNamespacedPodProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectPatchNamespacedPodProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPatchNamespacedPodProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPatchNamespacedPodProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectGetNamespacedPodProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectGetNamespacedPodProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectGetNamespacedPodProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedPodProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPutNamespacedPodProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectPutNamespacedPodProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPutNamespacedPodProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPutNamespacedPodProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPostNamespacedPodProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectPostNamespacedPodProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPostNamespacedPodProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedPodProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectDeleteNamespacedPodProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectDeleteNamespacedPodProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectDeleteNamespacedPodProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectDeleteNamespacedPodProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectHeadNamespacedPodProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectHeadNamespacedPodProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectHeadNamespacedPodProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectHeadNamespacedPodProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 string ConnectPatchNamespacedPodProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectPatchNamespacedPodProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPatchNamespacedPodProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPatchNamespacedPodProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - 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, string pretty = default(string)) - { - return operations.ReadNamespacedPodStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPodStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod ReplaceNamespacedPodStatus(this IKubernetes operations, V1Pod body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPodStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPodStatusAsync(this IKubernetes operations, V1Pod body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Pod PatchNamespacedPodStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPodStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPodStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedPodTemplateAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedPodTemplateAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodTemplateWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate CreateNamespacedPodTemplate(this IKubernetes operations, V1PodTemplate body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPodTemplateAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PodTemplate - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPodTemplateAsync(this IKubernetes operations, V1PodTemplate body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodTemplateWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedPodTemplate(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedPodTemplateAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedPodTemplateAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodTemplateWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate ReadNamespacedPodTemplate(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedPodTemplateAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPodTemplateAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodTemplateWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate ReplaceNamespacedPodTemplate(this IKubernetes operations, V1PodTemplate body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPodTemplateAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPodTemplateAsync(this IKubernetes operations, V1PodTemplate body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodTemplateWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPodTemplate(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedPodTemplateAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedPodTemplateAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodTemplateWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PodTemplate PatchNamespacedPodTemplate(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPodTemplateAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPodTemplateAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodTemplateWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedReplicationControllerAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedReplicationControllerAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedReplicationControllerWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController CreateNamespacedReplicationController(this IKubernetes operations, V1ReplicationController body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedReplicationControllerAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ReplicationController - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedReplicationControllerAsync(this IKubernetes operations, V1ReplicationController body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedReplicationControllerWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedReplicationController(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedReplicationControllerAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedReplicationControllerAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedReplicationControllerWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReadNamespacedReplicationController(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedReplicationControllerAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicationControllerAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReplaceNamespacedReplicationController(this IKubernetes operations, V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicationControllerAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicationControllerAsync(this IKubernetes operations, V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedReplicationController(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedReplicationControllerAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedReplicationControllerAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedReplicationControllerWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController PatchNamespacedReplicationController(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicationControllerAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicationControllerAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerWithHttpMessagesAsync(body, name, namespaceParameter, 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, string pretty = default(string)) - { - return operations.ReadNamespacedReplicationControllerScaleAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicationControllerScaleAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerScaleWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale ReplaceNamespacedReplicationControllerScale(this IKubernetes operations, V1Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicationControllerScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicationControllerScaleAsync(this IKubernetes operations, V1Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerScaleWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Scale PatchNamespacedReplicationControllerScale(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicationControllerScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicationControllerScaleAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerScaleWithHttpMessagesAsync(body, name, namespaceParameter, 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, string pretty = default(string)) - { - return operations.ReadNamespacedReplicationControllerStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicationControllerStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController ReplaceNamespacedReplicationControllerStatus(this IKubernetes operations, V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicationControllerStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicationControllerStatusAsync(this IKubernetes operations, V1ReplicationController body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ReplicationController PatchNamespacedReplicationControllerStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicationControllerStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicationControllerStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedResourceQuotaAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedResourceQuotaAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedResourceQuotaWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota CreateNamespacedResourceQuota(this IKubernetes operations, V1ResourceQuota body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedResourceQuotaAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ResourceQuota - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedResourceQuotaAsync(this IKubernetes operations, V1ResourceQuota body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedResourceQuotaWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedResourceQuota(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedResourceQuotaAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedResourceQuotaAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedResourceQuotaWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReadNamespacedResourceQuota(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedResourceQuotaAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedResourceQuotaAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedResourceQuotaWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReplaceNamespacedResourceQuota(this IKubernetes operations, V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedResourceQuotaAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedResourceQuotaAsync(this IKubernetes operations, V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedResourceQuotaWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedResourceQuota(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedResourceQuotaAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedResourceQuotaAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedResourceQuotaWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota PatchNamespacedResourceQuota(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedResourceQuotaAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedResourceQuotaAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedResourceQuotaWithHttpMessagesAsync(body, name, namespaceParameter, 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, string pretty = default(string)) - { - return operations.ReadNamespacedResourceQuotaStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedResourceQuotaStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedResourceQuotaStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota ReplaceNamespacedResourceQuotaStatus(this IKubernetes operations, V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedResourceQuotaStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedResourceQuotaStatusAsync(this IKubernetes operations, V1ResourceQuota body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedResourceQuotaStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ResourceQuota PatchNamespacedResourceQuotaStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedResourceQuotaStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedResourceQuotaStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedResourceQuotaStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedSecretAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedSecretAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedSecretWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret CreateNamespacedSecret(this IKubernetes operations, V1Secret body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedSecretAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Secret - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedSecretAsync(this IKubernetes operations, V1Secret body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedSecretWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedSecret(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedSecretAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedSecretAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedSecretWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret ReadNamespacedSecret(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedSecretAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedSecretAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedSecretWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret ReplaceNamespacedSecret(this IKubernetes operations, V1Secret body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedSecretAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedSecretAsync(this IKubernetes operations, V1Secret body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedSecretWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedSecret(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedSecretAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedSecretAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedSecretWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Secret PatchNamespacedSecret(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedSecretAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedSecretAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedSecretWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedServiceAccountAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedServiceAccountAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedServiceAccountWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount CreateNamespacedServiceAccount(this IKubernetes operations, V1ServiceAccount body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedServiceAccountAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ServiceAccount - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedServiceAccountAsync(this IKubernetes operations, V1ServiceAccount body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedServiceAccountWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedServiceAccount(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedServiceAccountAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedServiceAccountAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedServiceAccountWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount ReadNamespacedServiceAccount(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedServiceAccountAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedServiceAccountAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedServiceAccountWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount ReplaceNamespacedServiceAccount(this IKubernetes operations, V1ServiceAccount body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedServiceAccountAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedServiceAccountAsync(this IKubernetes operations, V1ServiceAccount body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedServiceAccountWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedServiceAccount(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedServiceAccountAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedServiceAccountAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedServiceAccountWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ServiceAccount PatchNamespacedServiceAccount(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedServiceAccountAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedServiceAccountAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedServiceAccountWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedServiceAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedServiceAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedServiceWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service CreateNamespacedService(this IKubernetes operations, V1Service body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedServiceAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedServiceAsync(this IKubernetes operations, V1Service body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedServiceWithHttpMessagesAsync(body, namespaceParameter, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReadNamespacedService(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedServiceAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReplaceNamespacedService(this IKubernetes operations, V1Service body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedServiceAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedServiceAsync(this IKubernetes operations, V1Service body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedServiceWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedService(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.DeleteNamespacedServiceAsync(name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedServiceWithHttpMessagesAsync(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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service PatchNamespacedService(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedServiceAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedServiceAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedServiceWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectGetNamespacedServiceProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectGetNamespacedServiceProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectGetNamespacedServiceProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedServiceProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectPutNamespacedServiceProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectPutNamespacedServiceProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPutNamespacedServiceProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPutNamespacedServiceProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectPostNamespacedServiceProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectPostNamespacedServiceProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPostNamespacedServiceProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedServiceProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectDeleteNamespacedServiceProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectDeleteNamespacedServiceProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectDeleteNamespacedServiceProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectDeleteNamespacedServiceProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectHeadNamespacedServiceProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectHeadNamespacedServiceProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectHeadNamespacedServiceProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectHeadNamespacedServiceProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectPatchNamespacedServiceProxy(this IKubernetes operations, string name, string namespaceParameter, string path = default(string)) - { - return operations.ConnectPatchNamespacedServiceProxyAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPatchNamespacedServiceProxyAsync(this IKubernetes operations, string name, string namespaceParameter, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPatchNamespacedServiceProxyWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectGetNamespacedServiceProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectGetNamespacedServiceProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectGetNamespacedServiceProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNamespacedServiceProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectPutNamespacedServiceProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectPutNamespacedServiceProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPutNamespacedServiceProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPutNamespacedServiceProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectPostNamespacedServiceProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectPostNamespacedServiceProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPostNamespacedServiceProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNamespacedServiceProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectDeleteNamespacedServiceProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectDeleteNamespacedServiceProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectDeleteNamespacedServiceProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectDeleteNamespacedServiceProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectHeadNamespacedServiceProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectHeadNamespacedServiceProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectHeadNamespacedServiceProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectHeadNamespacedServiceProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 string ConnectPatchNamespacedServiceProxyWithPath(this IKubernetes operations, string name, string namespaceParameter, string path, string path1) - { - return operations.ConnectPatchNamespacedServiceProxyWithPathAsync(name, namespaceParameter, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// 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 cancellation token. - /// - public static async Task ConnectPatchNamespacedServiceProxyWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPatchNamespacedServiceProxyWithPathWithHttpMessagesAsync(name, namespaceParameter, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - 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, string pretty = default(string)) - { - return operations.ReadNamespacedServiceStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedServiceStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedServiceStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service ReplaceNamespacedServiceStatus(this IKubernetes operations, V1Service body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedServiceStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedServiceStatusAsync(this IKubernetes operations, V1Service body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedServiceStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Service PatchNamespacedServiceStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedServiceStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedServiceStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedServiceStatusWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReadNamespace(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespaceAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Namespace - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespaceAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespaceWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceNamespace(this IKubernetes operations, V1Namespace body, string name, string pretty = default(string)) - { - return operations.ReplaceNamespaceAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespaceAsync(this IKubernetes operations, V1Namespace body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespaceWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespace(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespaceAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespaceAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespaceWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchNamespace(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchNamespaceAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespaceAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespaceWithHttpMessagesAsync(body, name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReplaceNamespaceFinalize(this IKubernetes operations, V1Namespace body, string name, string pretty = default(string)) - { - return operations.ReplaceNamespaceFinalizeAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace finalize of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespaceFinalizeAsync(this IKubernetes operations, V1Namespace body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespaceFinalizeWithHttpMessagesAsync(body, name, 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, string pretty = default(string)) - { - return operations.ReadNamespaceStatusAsync(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespaceStatusAsync(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespaceStatusWithHttpMessagesAsync(name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace ReplaceNamespaceStatus(this IKubernetes operations, V1Namespace body, string name, string pretty = default(string)) - { - return operations.ReplaceNamespaceStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespaceStatusAsync(this IKubernetes operations, V1Namespace body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespaceStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Namespace PatchNamespaceStatus(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchNamespaceStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Namespace - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Namespace - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespaceStatusAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespaceStatusWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNodeAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNodeAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNodeWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node CreateNode(this IKubernetes operations, V1Node body, string pretty = default(string)) - { - return operations.CreateNodeAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNodeAsync(this IKubernetes operations, V1Node body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNodeWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNode(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNodeAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNodeAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNodeWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node ReadNode(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNodeAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNodeAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNodeWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceNode(this IKubernetes operations, V1Node body, string name, string pretty = default(string)) - { - return operations.ReplaceNodeAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNodeAsync(this IKubernetes operations, V1Node body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNodeWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Node - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNode(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNodeAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Node - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNodeAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNodeWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchNode(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchNodeAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNodeAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNodeWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectGetNodeProxy(this IKubernetes operations, string name, string path = default(string)) - { - return operations.ConnectGetNodeProxyAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectGetNodeProxyAsync(this IKubernetes operations, string name, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNodeProxyWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectPutNodeProxy(this IKubernetes operations, string name, string path = default(string)) - { - return operations.ConnectPutNodeProxyAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPutNodeProxyAsync(this IKubernetes operations, string name, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPutNodeProxyWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectPostNodeProxy(this IKubernetes operations, string name, string path = default(string)) - { - return operations.ConnectPostNodeProxyAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPostNodeProxyAsync(this IKubernetes operations, string name, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNodeProxyWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectDeleteNodeProxy(this IKubernetes operations, string name, string path = default(string)) - { - return operations.ConnectDeleteNodeProxyAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectDeleteNodeProxyAsync(this IKubernetes operations, string name, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectDeleteNodeProxyWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectHeadNodeProxy(this IKubernetes operations, string name, string path = default(string)) - { - return operations.ConnectHeadNodeProxyAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectHeadNodeProxyAsync(this IKubernetes operations, string name, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectHeadNodeProxyWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectPatchNodeProxy(this IKubernetes operations, string name, string path = default(string)) - { - return operations.ConnectPatchNodeProxyAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPatchNodeProxyAsync(this IKubernetes operations, string name, string path = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPatchNodeProxyWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectGetNodeProxyWithPath(this IKubernetes operations, string name, string path, string path1) - { - return operations.ConnectGetNodeProxyWithPathAsync(name, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect GET requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectGetNodeProxyWithPathAsync(this IKubernetes operations, string name, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectGetNodeProxyWithPathWithHttpMessagesAsync(name, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectPutNodeProxyWithPath(this IKubernetes operations, string name, string path, string path1) - { - return operations.ConnectPutNodeProxyWithPathAsync(name, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect PUT requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPutNodeProxyWithPathAsync(this IKubernetes operations, string name, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPutNodeProxyWithPathWithHttpMessagesAsync(name, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectPostNodeProxyWithPath(this IKubernetes operations, string name, string path, string path1) - { - return operations.ConnectPostNodeProxyWithPathAsync(name, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect POST requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPostNodeProxyWithPathAsync(this IKubernetes operations, string name, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPostNodeProxyWithPathWithHttpMessagesAsync(name, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectDeleteNodeProxyWithPath(this IKubernetes operations, string name, string path, string path1) - { - return operations.ConnectDeleteNodeProxyWithPathAsync(name, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect DELETE requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectDeleteNodeProxyWithPathAsync(this IKubernetes operations, string name, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectDeleteNodeProxyWithPathWithHttpMessagesAsync(name, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectHeadNodeProxyWithPath(this IKubernetes operations, string name, string path, string path1) - { - return operations.ConnectHeadNodeProxyWithPathAsync(name, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect HEAD requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectHeadNodeProxyWithPathAsync(this IKubernetes operations, string name, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectHeadNodeProxyWithPathWithHttpMessagesAsync(name, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - public static string ConnectPatchNodeProxyWithPath(this IKubernetes operations, string name, string path, string path1) - { - return operations.ConnectPatchNodeProxyWithPathAsync(name, path, path1).GetAwaiter().GetResult(); - } - - /// - /// connect PATCH requests to proxy of Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// Path is the URL path to use for the current proxy request to node. - /// - /// - /// The cancellation token. - /// - public static async Task ConnectPatchNodeProxyWithPathAsync(this IKubernetes operations, string name, string path, string path1, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ConnectPatchNodeProxyWithPathWithHttpMessagesAsync(name, path, path1, null, cancellationToken).ConfigureAwait(false)) - { - 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, string pretty = default(string)) - { - return operations.ReadNodeStatusAsync(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNodeStatusAsync(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNodeStatusWithHttpMessagesAsync(name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node ReplaceNodeStatus(this IKubernetes operations, V1Node body, string name, string pretty = default(string)) - { - return operations.ReplaceNodeStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNodeStatusAsync(this IKubernetes operations, V1Node body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNodeStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Node PatchNodeStatus(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchNodeStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the Node - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNodeStatusAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNodeStatusWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListPersistentVolumeClaimForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PersistentVolumeClaim - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListPersistentVolumeClaimForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPersistentVolumeClaimForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListPersistentVolumeAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListPersistentVolumeAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPersistentVolumeWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume CreatePersistentVolume(this IKubernetes operations, V1PersistentVolume body, string pretty = default(string)) - { - return operations.CreatePersistentVolumeAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreatePersistentVolumeAsync(this IKubernetes operations, V1PersistentVolume body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePersistentVolumeWithHttpMessagesAsync(body, pretty, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionPersistentVolume(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionPersistentVolumeAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionPersistentVolumeAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPersistentVolumeWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume ReadPersistentVolume(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadPersistentVolumeAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PersistentVolume - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadPersistentVolumeAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPersistentVolumeWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplacePersistentVolume(this IKubernetes operations, V1PersistentVolume body, string name, string pretty = default(string)) - { - return operations.ReplacePersistentVolumeAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplacePersistentVolumeAsync(this IKubernetes operations, V1PersistentVolume body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePersistentVolumeWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeletePersistentVolume(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeletePersistentVolumeAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeletePersistentVolumeAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePersistentVolumeWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchPersistentVolume(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchPersistentVolumeAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchPersistentVolumeAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPersistentVolumeWithHttpMessagesAsync(body, name, 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, string pretty = default(string)) - { - return operations.ReadPersistentVolumeStatusAsync(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadPersistentVolumeStatusAsync(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPersistentVolumeStatusWithHttpMessagesAsync(name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume ReplacePersistentVolumeStatus(this IKubernetes operations, V1PersistentVolume body, string name, string pretty = default(string)) - { - return operations.ReplacePersistentVolumeStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplacePersistentVolumeStatusAsync(this IKubernetes operations, V1PersistentVolume body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePersistentVolumeStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1PersistentVolume PatchPersistentVolumeStatus(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchPersistentVolumeStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update status of the specified PersistentVolume - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PersistentVolume - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchPersistentVolumeStatusAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPersistentVolumeStatusWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListPodForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Pod - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListPodForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListPodTemplateForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodTemplate - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListPodTemplateForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodTemplateForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy GET requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyGETNamespacedPod(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyGETNamespacedPodAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy GET requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyGETNamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyGETNamespacedPodWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PUT requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyPUTNamespacedPod(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyPUTNamespacedPodAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy PUT requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPUTNamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPUTNamespacedPodWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy POST requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyPOSTNamespacedPod(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyPOSTNamespacedPodAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy POST requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPOSTNamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPOSTNamespacedPodWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy DELETE requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyDELETENamespacedPod(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyDELETENamespacedPodAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy DELETE requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyDELETENamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyDELETENamespacedPodWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy HEAD requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyHEADNamespacedPod(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyHEADNamespacedPodAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy HEAD requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyHEADNamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyHEADNamespacedPodWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PATCH requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyPATCHNamespacedPod(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyPATCHNamespacedPodAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy PATCH requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPATCHNamespacedPodAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPATCHNamespacedPodWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy GET requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyGETNamespacedPodWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyGETNamespacedPodWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy GET requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyGETNamespacedPodWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PUT requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyPUTNamespacedPodWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyPUTNamespacedPodWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy PUT requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPUTNamespacedPodWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy POST requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyPOSTNamespacedPodWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyPOSTNamespacedPodWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy POST requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPOSTNamespacedPodWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy DELETE requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyDELETENamespacedPodWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyDELETENamespacedPodWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy DELETE requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyDELETENamespacedPodWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy HEAD requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyHEADNamespacedPodWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyHEADNamespacedPodWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy HEAD requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyHEADNamespacedPodWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PATCH requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyPATCHNamespacedPodWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyPATCHNamespacedPodWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy PATCH requests to Pod - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Pod - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPATCHNamespacedPodWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPATCHNamespacedPodWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy GET requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyGETNamespacedService(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyGETNamespacedServiceAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy GET requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyGETNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyGETNamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PUT requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyPUTNamespacedService(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyPUTNamespacedServiceAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy PUT requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPUTNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPUTNamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy POST requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyPOSTNamespacedService(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyPOSTNamespacedServiceAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy POST requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPOSTNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPOSTNamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy DELETE requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyDELETENamespacedService(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyDELETENamespacedServiceAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy DELETE requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyDELETENamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyDELETENamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy HEAD requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyHEADNamespacedService(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyHEADNamespacedServiceAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy HEAD requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyHEADNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyHEADNamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PATCH requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - public static string ProxyPATCHNamespacedService(this IKubernetes operations, string name, string namespaceParameter) - { - return operations.ProxyPATCHNamespacedServiceAsync(name, namespaceParameter).GetAwaiter().GetResult(); - } - - /// - /// proxy PATCH requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPATCHNamespacedServiceAsync(this IKubernetes operations, string name, string namespaceParameter, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPATCHNamespacedServiceWithHttpMessagesAsync(name, namespaceParameter, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy GET requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyGETNamespacedServiceWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyGETNamespacedServiceWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy GET requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyGETNamespacedServiceWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyGETNamespacedServiceWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PUT requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyPUTNamespacedServiceWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyPUTNamespacedServiceWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy PUT requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPUTNamespacedServiceWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPUTNamespacedServiceWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy POST requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyPOSTNamespacedServiceWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyPOSTNamespacedServiceWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy POST requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPOSTNamespacedServiceWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPOSTNamespacedServiceWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy DELETE requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyDELETENamespacedServiceWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyDELETENamespacedServiceWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy DELETE requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyDELETENamespacedServiceWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyDELETENamespacedServiceWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy HEAD requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyHEADNamespacedServiceWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyHEADNamespacedServiceWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy HEAD requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyHEADNamespacedServiceWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyHEADNamespacedServiceWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PATCH requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - public static string ProxyPATCHNamespacedServiceWithPath(this IKubernetes operations, string name, string namespaceParameter, string path) - { - return operations.ProxyPATCHNamespacedServiceWithPathAsync(name, namespaceParameter, path).GetAwaiter().GetResult(); - } - - /// - /// proxy PATCH requests to Service - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Service - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPATCHNamespacedServiceWithPathAsync(this IKubernetes operations, string name, string namespaceParameter, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPATCHNamespacedServiceWithPathWithHttpMessagesAsync(name, namespaceParameter, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy GET requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - public static string ProxyGETNode(this IKubernetes operations, string name) - { - return operations.ProxyGETNodeAsync(name).GetAwaiter().GetResult(); - } - - /// - /// proxy GET requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// The cancellation token. - /// - public static async Task ProxyGETNodeAsync(this IKubernetes operations, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyGETNodeWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PUT requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - public static string ProxyPUTNode(this IKubernetes operations, string name) - { - return operations.ProxyPUTNodeAsync(name).GetAwaiter().GetResult(); - } - - /// - /// proxy PUT requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPUTNodeAsync(this IKubernetes operations, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPUTNodeWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy POST requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - public static string ProxyPOSTNode(this IKubernetes operations, string name) - { - return operations.ProxyPOSTNodeAsync(name).GetAwaiter().GetResult(); - } - - /// - /// proxy POST requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPOSTNodeAsync(this IKubernetes operations, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPOSTNodeWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy DELETE requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - public static string ProxyDELETENode(this IKubernetes operations, string name) - { - return operations.ProxyDELETENodeAsync(name).GetAwaiter().GetResult(); - } - - /// - /// proxy DELETE requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// The cancellation token. - /// - public static async Task ProxyDELETENodeAsync(this IKubernetes operations, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyDELETENodeWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy HEAD requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - public static string ProxyHEADNode(this IKubernetes operations, string name) - { - return operations.ProxyHEADNodeAsync(name).GetAwaiter().GetResult(); - } - - /// - /// proxy HEAD requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// The cancellation token. - /// - public static async Task ProxyHEADNodeAsync(this IKubernetes operations, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyHEADNodeWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PATCH requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - public static string ProxyPATCHNode(this IKubernetes operations, string name) - { - return operations.ProxyPATCHNodeAsync(name).GetAwaiter().GetResult(); - } - - /// - /// proxy PATCH requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPATCHNodeAsync(this IKubernetes operations, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPATCHNodeWithHttpMessagesAsync(name, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy GET requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - public static string ProxyGETNodeWithPath(this IKubernetes operations, string name, string path) - { - return operations.ProxyGETNodeWithPathAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// proxy GET requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyGETNodeWithPathAsync(this IKubernetes operations, string name, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyGETNodeWithPathWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PUT requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - public static string ProxyPUTNodeWithPath(this IKubernetes operations, string name, string path) - { - return operations.ProxyPUTNodeWithPathAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// proxy PUT requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPUTNodeWithPathAsync(this IKubernetes operations, string name, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPUTNodeWithPathWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy POST requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - public static string ProxyPOSTNodeWithPath(this IKubernetes operations, string name, string path) - { - return operations.ProxyPOSTNodeWithPathAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// proxy POST requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPOSTNodeWithPathAsync(this IKubernetes operations, string name, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPOSTNodeWithPathWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy DELETE requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - public static string ProxyDELETENodeWithPath(this IKubernetes operations, string name, string path) - { - return operations.ProxyDELETENodeWithPathAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// proxy DELETE requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyDELETENodeWithPathAsync(this IKubernetes operations, string name, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyDELETENodeWithPathWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy HEAD requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - public static string ProxyHEADNodeWithPath(this IKubernetes operations, string name, string path) - { - return operations.ProxyHEADNodeWithPathAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// proxy HEAD requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyHEADNodeWithPathAsync(this IKubernetes operations, string name, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyHEADNodeWithPathWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// proxy PATCH requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - public static string ProxyPATCHNodeWithPath(this IKubernetes operations, string name, string path) - { - return operations.ProxyPATCHNodeWithPathAsync(name, path).GetAwaiter().GetResult(); - } - - /// - /// proxy PATCH requests to Node - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the Node - /// - /// - /// path to the resource - /// - /// - /// The cancellation token. - /// - public static async Task ProxyPATCHNodeWithPathAsync(this IKubernetes operations, string name, string path, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ProxyPATCHNodeWithPathWithHttpMessagesAsync(name, path, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListReplicationControllerForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicationController - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListReplicationControllerForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListReplicationControllerForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListResourceQuotaForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ResourceQuota - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListResourceQuotaForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListResourceQuotaForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListSecretForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Secret - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListSecretForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListSecretForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListServiceAccountForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ServiceAccount - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListServiceAccountForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListServiceAccountForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Service - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListServiceForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Service - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListServiceForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListServiceForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get available API versions - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 information of a group - /// - /// - /// The operations group for this extension method. - /// - public static V1APIGroup GetAPIGroup(this IKubernetes operations) - { - return operations.GetAPIGroupAsync().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources1(this IKubernetes operations) - { - return operations.GetAPIResources1Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind ExternalAdmissionHookConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1alpha1ExternalAdmissionHookConfigurationList ListExternalAdmissionHookConfiguration(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListExternalAdmissionHookConfigurationAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ExternalAdmissionHookConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListExternalAdmissionHookConfigurationAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListExternalAdmissionHookConfigurationWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ExternalAdmissionHookConfiguration CreateExternalAdmissionHookConfiguration(this IKubernetes operations, V1alpha1ExternalAdmissionHookConfiguration body, string pretty = default(string)) - { - return operations.CreateExternalAdmissionHookConfigurationAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create an ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateExternalAdmissionHookConfigurationAsync(this IKubernetes operations, V1alpha1ExternalAdmissionHookConfiguration body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateExternalAdmissionHookConfigurationWithHttpMessagesAsync(body, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of ExternalAdmissionHookConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionExternalAdmissionHookConfiguration(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionExternalAdmissionHookConfigurationAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete collection of ExternalAdmissionHookConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionExternalAdmissionHookConfigurationAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionExternalAdmissionHookConfigurationWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ExternalAdmissionHookConfiguration ReadExternalAdmissionHookConfiguration(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadExternalAdmissionHookConfigurationAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadExternalAdmissionHookConfigurationAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadExternalAdmissionHookConfigurationWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ExternalAdmissionHookConfiguration ReplaceExternalAdmissionHookConfiguration(this IKubernetes operations, V1alpha1ExternalAdmissionHookConfiguration body, string name, string pretty = default(string)) - { - return operations.ReplaceExternalAdmissionHookConfigurationAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceExternalAdmissionHookConfigurationAsync(this IKubernetes operations, V1alpha1ExternalAdmissionHookConfiguration body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceExternalAdmissionHookConfigurationWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteExternalAdmissionHookConfiguration(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteExternalAdmissionHookConfigurationAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete an ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteExternalAdmissionHookConfigurationAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteExternalAdmissionHookConfigurationWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ExternalAdmissionHookConfiguration PatchExternalAdmissionHookConfiguration(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchExternalAdmissionHookConfigurationAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ExternalAdmissionHookConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ExternalAdmissionHookConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchExternalAdmissionHookConfigurationAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchExternalAdmissionHookConfigurationWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind InitializerConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1alpha1InitializerConfigurationList ListInitializerConfiguration(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListInitializerConfigurationAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind InitializerConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListInitializerConfigurationAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListInitializerConfigurationWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1InitializerConfiguration CreateInitializerConfiguration(this IKubernetes operations, V1alpha1InitializerConfiguration body, string pretty = default(string)) - { - return operations.CreateInitializerConfigurationAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create an InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateInitializerConfigurationAsync(this IKubernetes operations, V1alpha1InitializerConfiguration body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateInitializerConfigurationWithHttpMessagesAsync(body, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of InitializerConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionInitializerConfiguration(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionInitializerConfigurationAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete collection of InitializerConfiguration - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionInitializerConfigurationAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionInitializerConfigurationWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1InitializerConfiguration ReadInitializerConfiguration(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadInitializerConfigurationAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadInitializerConfigurationAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadInitializerConfigurationWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1InitializerConfiguration ReplaceInitializerConfiguration(this IKubernetes operations, V1alpha1InitializerConfiguration body, string name, string pretty = default(string)) - { - return operations.ReplaceInitializerConfigurationAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceInitializerConfigurationAsync(this IKubernetes operations, V1alpha1InitializerConfiguration body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceInitializerConfigurationWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteInitializerConfiguration(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteInitializerConfigurationAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete an InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteInitializerConfigurationAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteInitializerConfigurationWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1InitializerConfiguration PatchInitializerConfiguration(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchInitializerConfigurationAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified InitializerConfiguration - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the InitializerConfiguration - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchInitializerConfigurationAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchInitializerConfigurationWithHttpMessagesAsync(body, name, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources2(this IKubernetes operations) - { - return operations.GetAPIResources2Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1CustomResourceDefinitionList ListCustomResourceDefinition(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListCustomResourceDefinitionAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListCustomResourceDefinitionAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCustomResourceDefinitionWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CustomResourceDefinition CreateCustomResourceDefinition(this IKubernetes operations, V1beta1CustomResourceDefinition body, string pretty = default(string)) - { - return operations.CreateCustomResourceDefinitionAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateCustomResourceDefinitionAsync(this IKubernetes operations, V1beta1CustomResourceDefinition body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateCustomResourceDefinitionWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionCustomResourceDefinition(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionCustomResourceDefinitionAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionCustomResourceDefinitionAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionCustomResourceDefinitionWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CustomResourceDefinition ReadCustomResourceDefinition(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadCustomResourceDefinitionAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadCustomResourceDefinitionAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCustomResourceDefinitionWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CustomResourceDefinition ReplaceCustomResourceDefinition(this IKubernetes operations, V1beta1CustomResourceDefinition body, string name, string pretty = default(string)) - { - return operations.ReplaceCustomResourceDefinitionAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceCustomResourceDefinitionAsync(this IKubernetes operations, V1beta1CustomResourceDefinition body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCustomResourceDefinitionWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCustomResourceDefinition(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteCustomResourceDefinitionAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteCustomResourceDefinitionAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCustomResourceDefinitionWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CustomResourceDefinition PatchCustomResourceDefinition(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchCustomResourceDefinitionAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchCustomResourceDefinitionAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCustomResourceDefinitionWithHttpMessagesAsync(body, name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CustomResourceDefinition ReplaceCustomResourceDefinitionStatus(this IKubernetes operations, V1beta1CustomResourceDefinition body, string name, string pretty = default(string)) - { - return operations.ReplaceCustomResourceDefinitionStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified CustomResourceDefinition - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CustomResourceDefinition - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceCustomResourceDefinitionStatusAsync(this IKubernetes operations, V1beta1CustomResourceDefinition body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCustomResourceDefinitionStatusWithHttpMessagesAsync(body, name, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources3(this IKubernetes operations) - { - return operations.GetAPIResources3Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1APIServiceList ListAPIService(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListAPIServiceAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListAPIServiceAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListAPIServiceWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1APIService CreateAPIService(this IKubernetes operations, V1beta1APIService body, string pretty = default(string)) - { - return operations.CreateAPIServiceAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateAPIServiceAsync(this IKubernetes operations, V1beta1APIService body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateAPIServiceWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionAPIService(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionAPIServiceAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionAPIServiceAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionAPIServiceWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1APIService ReadAPIService(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadAPIServiceAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the APIService - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadAPIServiceAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadAPIServiceWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1APIService ReplaceAPIService(this IKubernetes operations, V1beta1APIService body, string name, string pretty = default(string)) - { - return operations.ReplaceAPIServiceAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceAPIServiceAsync(this IKubernetes operations, V1beta1APIService body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceAPIServiceWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteAPIService(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteAPIServiceAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete an APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteAPIServiceAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteAPIServiceWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1APIService PatchAPIService(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchAPIServiceAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchAPIServiceAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchAPIServiceWithHttpMessagesAsync(body, name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1APIService ReplaceAPIServiceStatus(this IKubernetes operations, V1beta1APIService body, string name, string pretty = default(string)) - { - return operations.ReplaceAPIServiceStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified APIService - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the APIService - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceAPIServiceStatusAsync(this IKubernetes operations, V1beta1APIService body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceAPIServiceStatusWithHttpMessagesAsync(body, name, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources4(this IKubernetes operations) - { - return operations.GetAPIResources4Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1ControllerRevisionList ListControllerRevisionForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListControllerRevisionForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListControllerRevisionForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListControllerRevisionForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static Appsv1beta1DeploymentList ListDeploymentForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListDeploymentForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListDeploymentForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDeploymentForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1ControllerRevisionList ListNamespacedControllerRevision(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedControllerRevisionAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedControllerRevisionAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedControllerRevisionWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ControllerRevision CreateNamespacedControllerRevision(this IKubernetes operations, V1beta1ControllerRevision body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedControllerRevisionAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedControllerRevisionAsync(this IKubernetes operations, V1beta1ControllerRevision body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedControllerRevisionWithHttpMessagesAsync(body, namespaceParameter, pretty, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedControllerRevision(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedControllerRevisionAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedControllerRevisionAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedControllerRevisionWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ControllerRevision ReadNamespacedControllerRevision(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedControllerRevisionAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedControllerRevisionAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedControllerRevisionWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ControllerRevision ReplaceNamespacedControllerRevision(this IKubernetes operations, V1beta1ControllerRevision body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedControllerRevisionAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedControllerRevisionAsync(this IKubernetes operations, V1beta1ControllerRevision body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedControllerRevisionWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedControllerRevision(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedControllerRevisionAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedControllerRevisionAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedControllerRevisionWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ControllerRevision PatchNamespacedControllerRevision(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedControllerRevisionAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedControllerRevisionAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedControllerRevisionWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 Appsv1beta1DeploymentList ListNamespacedDeployment(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedDeploymentAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedDeploymentAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDeploymentWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Deployment CreateNamespacedDeployment(this IKubernetes operations, Appsv1beta1Deployment body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDeploymentAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDeploymentAsync(this IKubernetes operations, Appsv1beta1Deployment body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDeploymentWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedDeployment(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedDeploymentAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedDeploymentAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDeploymentWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Deployment ReadNamespacedDeployment(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Deployment ReplaceNamespacedDeployment(this IKubernetes operations, Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentAsync(this IKubernetes operations, Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDeployment(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedDeploymentAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedDeploymentAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDeploymentWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Deployment PatchNamespacedDeployment(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create rollback of a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1DeploymentRollback CreateNamespacedDeploymentRollback(this IKubernetes operations, Appsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDeploymentRollbackAsync(body, name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create rollback of a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDeploymentRollbackAsync(this IKubernetes operations, Appsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDeploymentRollbackWithHttpMessagesAsync(body, name, namespaceParameter, 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 Appsv1beta1Scale ReadNamespacedDeploymentScale(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentScaleAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentScaleAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentScaleWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Scale ReplaceNamespacedDeploymentScale(this IKubernetes operations, Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentScaleAsync(this IKubernetes operations, Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentScaleWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Scale PatchNamespacedDeploymentScale(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentScaleAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentScaleWithHttpMessagesAsync(body, name, namespaceParameter, 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 Appsv1beta1Deployment ReadNamespacedDeploymentStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Deployment ReplaceNamespacedDeploymentStatus(this IKubernetes operations, Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentStatusAsync(this IKubernetes operations, Appsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Deployment PatchNamespacedDeploymentStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1StatefulSetList ListNamespacedStatefulSet(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedStatefulSetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedStatefulSetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedStatefulSetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StatefulSet CreateNamespacedStatefulSet(this IKubernetes operations, V1beta1StatefulSet body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedStatefulSetAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedStatefulSetAsync(this IKubernetes operations, V1beta1StatefulSet body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedStatefulSetWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedStatefulSet(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedStatefulSetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedStatefulSetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedStatefulSetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StatefulSet ReadNamespacedStatefulSet(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedStatefulSetAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedStatefulSetAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StatefulSet ReplaceNamespacedStatefulSet(this IKubernetes operations, V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedStatefulSetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedStatefulSetAsync(this IKubernetes operations, V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedStatefulSet(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedStatefulSetAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedStatefulSetAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedStatefulSetWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StatefulSet PatchNamespacedStatefulSet(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedStatefulSetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedStatefulSetAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetWithHttpMessagesAsync(body, name, namespaceParameter, 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 Appsv1beta1Scale ReadNamespacedStatefulSetScale(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedStatefulSetScaleAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedStatefulSetScaleAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetScaleWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Scale ReplaceNamespacedStatefulSetScale(this IKubernetes operations, Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedStatefulSetScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedStatefulSetScaleAsync(this IKubernetes operations, Appsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetScaleWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Appsv1beta1Scale PatchNamespacedStatefulSetScale(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedStatefulSetScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedStatefulSetScaleAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetScaleWithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta1StatefulSet ReadNamespacedStatefulSetStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedStatefulSetStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedStatefulSetStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StatefulSet ReplaceNamespacedStatefulSetStatus(this IKubernetes operations, V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedStatefulSetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedStatefulSetStatusAsync(this IKubernetes operations, V1beta1StatefulSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StatefulSet PatchNamespacedStatefulSetStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedStatefulSetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedStatefulSetStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetStatusWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1StatefulSetList ListStatefulSetForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListStatefulSetForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListStatefulSetForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStatefulSetForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta2ControllerRevisionList ListControllerRevisionForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListControllerRevisionForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ControllerRevision - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListControllerRevisionForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListControllerRevisionForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta2DaemonSetList ListDaemonSetForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListDaemonSetForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListDaemonSetForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDaemonSetForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta2DeploymentList ListDeploymentForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListDeploymentForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListDeploymentForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDeploymentForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta2ControllerRevisionList ListNamespacedControllerRevision1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedControllerRevision1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedControllerRevision1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedControllerRevision1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ControllerRevision CreateNamespacedControllerRevision1(this IKubernetes operations, V1beta2ControllerRevision body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedControllerRevision1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ControllerRevision - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedControllerRevision1Async(this IKubernetes operations, V1beta2ControllerRevision body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedControllerRevision1WithHttpMessagesAsync(body, namespaceParameter, pretty, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedControllerRevision1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedControllerRevision1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedControllerRevision1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedControllerRevision1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ControllerRevision ReadNamespacedControllerRevision1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedControllerRevision1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedControllerRevision1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedControllerRevision1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ControllerRevision ReplaceNamespacedControllerRevision1(this IKubernetes operations, V1beta2ControllerRevision body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedControllerRevision1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedControllerRevision1Async(this IKubernetes operations, V1beta2ControllerRevision body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedControllerRevision1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedControllerRevision1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedControllerRevision1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedControllerRevision1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedControllerRevision1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ControllerRevision PatchNamespacedControllerRevision1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedControllerRevision1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedControllerRevision1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedControllerRevision1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta2DaemonSetList ListNamespacedDaemonSet(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedDaemonSetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedDaemonSetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDaemonSetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2DaemonSet CreateNamespacedDaemonSet(this IKubernetes operations, V1beta2DaemonSet body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDaemonSetAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDaemonSetAsync(this IKubernetes operations, V1beta2DaemonSet body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDaemonSetWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedDaemonSet(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedDaemonSetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedDaemonSetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDaemonSetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2DaemonSet ReadNamespacedDaemonSet(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedDaemonSetAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDaemonSetAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDaemonSetWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2DaemonSet ReplaceNamespacedDaemonSet(this IKubernetes operations, V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDaemonSetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDaemonSetAsync(this IKubernetes operations, V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDaemonSetWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDaemonSet(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedDaemonSetAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedDaemonSetAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDaemonSetWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2DaemonSet PatchNamespacedDaemonSet(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDaemonSetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDaemonSetAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDaemonSetWithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2DaemonSet ReadNamespacedDaemonSetStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDaemonSetStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDaemonSetStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDaemonSetStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2DaemonSet ReplaceNamespacedDaemonSetStatus(this IKubernetes operations, V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDaemonSetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDaemonSetStatusAsync(this IKubernetes operations, V1beta2DaemonSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDaemonSetStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2DaemonSet PatchNamespacedDaemonSetStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDaemonSetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDaemonSetStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDaemonSetStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta2DeploymentList ListNamespacedDeployment1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedDeployment1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedDeployment1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDeployment1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Deployment CreateNamespacedDeployment1(this IKubernetes operations, V1beta2Deployment body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDeployment1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDeployment1Async(this IKubernetes operations, V1beta2Deployment body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDeployment1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedDeployment1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedDeployment1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedDeployment1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDeployment1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Deployment ReadNamespacedDeployment1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedDeployment1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeployment1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeployment1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Deployment ReplaceNamespacedDeployment1(this IKubernetes operations, V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeployment1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeployment1Async(this IKubernetes operations, V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeployment1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDeployment1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedDeployment1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedDeployment1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDeployment1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Deployment PatchNamespacedDeployment1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeployment1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeployment1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeployment1WithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2Scale ReadNamespacedDeploymentScale1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentScale1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentScale1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentScale1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Scale ReplaceNamespacedDeploymentScale1(this IKubernetes operations, V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentScale1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentScale1Async(this IKubernetes operations, V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentScale1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Scale PatchNamespacedDeploymentScale1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentScale1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentScale1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentScale1WithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2Deployment ReadNamespacedDeploymentStatus1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentStatus1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentStatus1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentStatus1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Deployment ReplaceNamespacedDeploymentStatus1(this IKubernetes operations, V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentStatus1Async(this IKubernetes operations, V1beta2Deployment body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentStatus1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Deployment PatchNamespacedDeploymentStatus1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentStatus1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentStatus1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta2ReplicaSetList ListNamespacedReplicaSet(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedReplicaSetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedReplicaSetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedReplicaSetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ReplicaSet CreateNamespacedReplicaSet(this IKubernetes operations, V1beta2ReplicaSet body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedReplicaSetAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedReplicaSetAsync(this IKubernetes operations, V1beta2ReplicaSet body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedReplicaSetWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedReplicaSet(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedReplicaSetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedReplicaSetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedReplicaSetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ReplicaSet ReadNamespacedReplicaSet(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedReplicaSetAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicaSetAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ReplicaSet ReplaceNamespacedReplicaSet(this IKubernetes operations, V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicaSetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicaSetAsync(this IKubernetes operations, V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedReplicaSet(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedReplicaSetAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedReplicaSetAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedReplicaSetWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ReplicaSet PatchNamespacedReplicaSet(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicaSetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicaSetAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetWithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2Scale ReadNamespacedReplicaSetScale(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedReplicaSetScaleAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicaSetScaleAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetScaleWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Scale ReplaceNamespacedReplicaSetScale(this IKubernetes operations, V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicaSetScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicaSetScaleAsync(this IKubernetes operations, V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetScaleWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Scale PatchNamespacedReplicaSetScale(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicaSetScaleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicaSetScaleAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetScaleWithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2ReplicaSet ReadNamespacedReplicaSetStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedReplicaSetStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicaSetStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ReplicaSet ReplaceNamespacedReplicaSetStatus(this IKubernetes operations, V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicaSetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicaSetStatusAsync(this IKubernetes operations, V1beta2ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2ReplicaSet PatchNamespacedReplicaSetStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicaSetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicaSetStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta2StatefulSetList ListNamespacedStatefulSet1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedStatefulSet1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedStatefulSet1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedStatefulSet1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2StatefulSet CreateNamespacedStatefulSet1(this IKubernetes operations, V1beta2StatefulSet body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedStatefulSet1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a StatefulSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedStatefulSet1Async(this IKubernetes operations, V1beta2StatefulSet body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedStatefulSet1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedStatefulSet1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedStatefulSet1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedStatefulSet1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedStatefulSet1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2StatefulSet ReadNamespacedStatefulSet1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedStatefulSet1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedStatefulSet1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSet1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2StatefulSet ReplaceNamespacedStatefulSet1(this IKubernetes operations, V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedStatefulSet1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedStatefulSet1Async(this IKubernetes operations, V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSet1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedStatefulSet1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedStatefulSet1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedStatefulSet1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedStatefulSet1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2StatefulSet PatchNamespacedStatefulSet1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedStatefulSet1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedStatefulSet1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSet1WithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2Scale ReadNamespacedStatefulSetScale1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedStatefulSetScale1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedStatefulSetScale1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetScale1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Scale ReplaceNamespacedStatefulSetScale1(this IKubernetes operations, V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedStatefulSetScale1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedStatefulSetScale1Async(this IKubernetes operations, V1beta2Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetScale1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2Scale PatchNamespacedStatefulSetScale1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedStatefulSetScale1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedStatefulSetScale1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetScale1WithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta2StatefulSet ReadNamespacedStatefulSetStatus1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedStatefulSetStatus1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedStatefulSetStatus1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedStatefulSetStatus1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2StatefulSet ReplaceNamespacedStatefulSetStatus1(this IKubernetes operations, V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedStatefulSetStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedStatefulSetStatus1Async(this IKubernetes operations, V1beta2StatefulSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedStatefulSetStatus1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta2StatefulSet PatchNamespacedStatefulSetStatus1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedStatefulSetStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedStatefulSetStatus1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedStatefulSetStatus1WithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta2ReplicaSetList ListReplicaSetForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListReplicaSetForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListReplicaSetForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListReplicaSetForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta2StatefulSetList ListStatefulSetForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListStatefulSetForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind StatefulSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListStatefulSetForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStatefulSetForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources6(this IKubernetes operations) - { - return operations.GetAPIResources6Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// create a TokenReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1TokenReview CreateTokenReview(this IKubernetes operations, V1TokenReview body, string pretty = default(string)) - { - return operations.CreateTokenReviewAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a TokenReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateTokenReviewAsync(this IKubernetes operations, V1TokenReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateTokenReviewWithHttpMessagesAsync(body, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// create a TokenReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1TokenReview CreateTokenReview1(this IKubernetes operations, V1beta1TokenReview body, string pretty = default(string)) - { - return operations.CreateTokenReview1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a TokenReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateTokenReview1Async(this IKubernetes operations, V1beta1TokenReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateTokenReview1WithHttpMessagesAsync(body, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources8(this IKubernetes operations) - { - return operations.GetAPIResources8Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1LocalSubjectAccessReview CreateNamespacedLocalSubjectAccessReview(this IKubernetes operations, V1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedLocalSubjectAccessReviewAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedLocalSubjectAccessReviewAsync(this IKubernetes operations, V1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedLocalSubjectAccessReviewWithHttpMessagesAsync(body, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SelfSubjectAccessReview CreateSelfSubjectAccessReview(this IKubernetes operations, V1SelfSubjectAccessReview body, string pretty = default(string)) - { - return operations.CreateSelfSubjectAccessReviewAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateSelfSubjectAccessReviewAsync(this IKubernetes operations, V1SelfSubjectAccessReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSelfSubjectAccessReviewWithHttpMessagesAsync(body, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SelfSubjectRulesReview CreateSelfSubjectRulesReview(this IKubernetes operations, V1SelfSubjectRulesReview body, string pretty = default(string)) - { - return operations.CreateSelfSubjectRulesReviewAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateSelfSubjectRulesReviewAsync(this IKubernetes operations, V1SelfSubjectRulesReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSelfSubjectRulesReviewWithHttpMessagesAsync(body, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1SubjectAccessReview CreateSubjectAccessReview(this IKubernetes operations, V1SubjectAccessReview body, string pretty = default(string)) - { - return operations.CreateSubjectAccessReviewAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a SubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateSubjectAccessReviewAsync(this IKubernetes operations, V1SubjectAccessReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSubjectAccessReviewWithHttpMessagesAsync(body, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1LocalSubjectAccessReview CreateNamespacedLocalSubjectAccessReview1(this IKubernetes operations, V1beta1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedLocalSubjectAccessReview1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a LocalSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedLocalSubjectAccessReview1Async(this IKubernetes operations, V1beta1LocalSubjectAccessReview body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedLocalSubjectAccessReview1WithHttpMessagesAsync(body, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1SelfSubjectAccessReview CreateSelfSubjectAccessReview1(this IKubernetes operations, V1beta1SelfSubjectAccessReview body, string pretty = default(string)) - { - return operations.CreateSelfSubjectAccessReview1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a SelfSubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateSelfSubjectAccessReview1Async(this IKubernetes operations, V1beta1SelfSubjectAccessReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSelfSubjectAccessReview1WithHttpMessagesAsync(body, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1SelfSubjectRulesReview CreateSelfSubjectRulesReview1(this IKubernetes operations, V1beta1SelfSubjectRulesReview body, string pretty = default(string)) - { - return operations.CreateSelfSubjectRulesReview1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a SelfSubjectRulesReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateSelfSubjectRulesReview1Async(this IKubernetes operations, V1beta1SelfSubjectRulesReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSelfSubjectRulesReview1WithHttpMessagesAsync(body, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a SubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1SubjectAccessReview CreateSubjectAccessReview1(this IKubernetes operations, V1beta1SubjectAccessReview body, string pretty = default(string)) - { - return operations.CreateSubjectAccessReview1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a SubjectAccessReview - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateSubjectAccessReview1Async(this IKubernetes operations, V1beta1SubjectAccessReview body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateSubjectAccessReview1WithHttpMessagesAsync(body, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources10(this IKubernetes operations) - { - return operations.GetAPIResources10Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListHorizontalPodAutoscalerForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListHorizontalPodAutoscalerForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListHorizontalPodAutoscalerForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedHorizontalPodAutoscalerAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler CreateNamespacedHorizontalPodAutoscaler(this IKubernetes operations, V1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedHorizontalPodAutoscalerAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, V1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedHorizontalPodAutoscaler(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedHorizontalPodAutoscalerAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscaler(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedHorizontalPodAutoscalerAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscaler(this IKubernetes operations, V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedHorizontalPodAutoscaler(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedHorizontalPodAutoscalerAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscaler(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedHorizontalPodAutoscalerAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerWithHttpMessagesAsync(body, 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 V1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscalerStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedHorizontalPodAutoscalerStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscalerStatus(this IKubernetes operations, V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerStatusAsync(this IKubernetes operations, V1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscalerStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedHorizontalPodAutoscalerStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerStatusWithHttpMessagesAsync(body, name, namespaceParameter, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListHorizontalPodAutoscalerForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind HorizontalPodAutoscaler - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListHorizontalPodAutoscalerForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListHorizontalPodAutoscalerForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedHorizontalPodAutoscaler1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler CreateNamespacedHorizontalPodAutoscaler1(this IKubernetes operations, V2beta1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedHorizontalPodAutoscaler1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a HorizontalPodAutoscaler - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, V2beta1HorizontalPodAutoscaler body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedHorizontalPodAutoscaler1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedHorizontalPodAutoscaler1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReadNamespacedHorizontalPodAutoscaler1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedHorizontalPodAutoscaler1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscaler1(this IKubernetes operations, V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedHorizontalPodAutoscaler1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedHorizontalPodAutoscaler1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedHorizontalPodAutoscaler1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscaler1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedHorizontalPodAutoscaler1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedHorizontalPodAutoscaler1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscaler1WithHttpMessagesAsync(body, 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, string pretty = default(string)) - { - return operations.ReadNamespacedHorizontalPodAutoscalerStatus1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedHorizontalPodAutoscalerStatus1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler ReplaceNamespacedHorizontalPodAutoscalerStatus1(this IKubernetes operations, V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedHorizontalPodAutoscalerStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedHorizontalPodAutoscalerStatus1Async(this IKubernetes operations, V2beta1HorizontalPodAutoscaler body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2beta1HorizontalPodAutoscaler PatchNamespacedHorizontalPodAutoscalerStatus1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedHorizontalPodAutoscalerStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedHorizontalPodAutoscalerStatus1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedHorizontalPodAutoscalerStatus1WithHttpMessagesAsync(body, name, namespaceParameter, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources12(this IKubernetes operations) - { - return operations.GetAPIResources12Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind Job - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListJobForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Job - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListJobForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListJobForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedJobAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedJobAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedJobWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job CreateNamespacedJob(this IKubernetes operations, V1Job body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedJobAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Job - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedJobAsync(this IKubernetes operations, V1Job body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedJobWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedJob(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedJobAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedJobAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedJobWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReadNamespacedJob(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedJobAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedJobAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedJobWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReplaceNamespacedJob(this IKubernetes operations, V1Job body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedJobAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedJobAsync(this IKubernetes operations, V1Job body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedJobWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedJob(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedJobAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedJobAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedJobWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job PatchNamespacedJob(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedJobAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedJobAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedJobWithHttpMessagesAsync(body, name, namespaceParameter, 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, string pretty = default(string)) - { - return operations.ReadNamespacedJobStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedJobStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedJobStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job ReplaceNamespacedJobStatus(this IKubernetes operations, V1Job body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedJobStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedJobStatusAsync(this IKubernetes operations, V1Job body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedJobStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Job PatchNamespacedJobStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedJobStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedJobStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedJobStatusWithHttpMessagesAsync(body, name, namespaceParameter, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1CronJobList ListCronJobForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListCronJobForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListCronJobForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCronJobForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 ListNamespacedCronJob(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedCronJobAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedCronJobAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCronJobWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob CreateNamespacedCronJob(this IKubernetes operations, V1beta1CronJob body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedCronJobAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedCronJobAsync(this IKubernetes operations, V1beta1CronJob body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCronJobWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedCronJob(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedCronJobAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedCronJobAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCronJobWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReadNamespacedCronJob(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedCronJobAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedCronJobAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJobWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReplaceNamespacedCronJob(this IKubernetes operations, V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedCronJobAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedCronJobAsync(this IKubernetes operations, V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJobWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedCronJob(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedCronJobAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedCronJobAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCronJobWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob PatchNamespacedCronJob(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedCronJobAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedCronJobAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJobWithHttpMessagesAsync(body, 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 ReadNamespacedCronJobStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedCronJobStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedCronJobStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJobStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob ReplaceNamespacedCronJobStatus(this IKubernetes operations, V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedCronJobStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedCronJobStatusAsync(this IKubernetes operations, V1beta1CronJob body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJobStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CronJob PatchNamespacedCronJobStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedCronJobStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedCronJobStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJobStatusWithHttpMessagesAsync(body, name, namespaceParameter, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V2alpha1CronJobList ListCronJobForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListCronJobForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind CronJob - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListCronJobForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCronJobForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V2alpha1CronJobList ListNamespacedCronJob1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedCronJob1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedCronJob1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCronJob1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2alpha1CronJob CreateNamespacedCronJob1(this IKubernetes operations, V2alpha1CronJob body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedCronJob1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a CronJob - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedCronJob1Async(this IKubernetes operations, V2alpha1CronJob body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCronJob1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedCronJob1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedCronJob1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedCronJob1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedCronJob1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2alpha1CronJob ReadNamespacedCronJob1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedCronJob1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedCronJob1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJob1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2alpha1CronJob ReplaceNamespacedCronJob1(this IKubernetes operations, V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedCronJob1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedCronJob1Async(this IKubernetes operations, V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJob1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedCronJob1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedCronJob1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedCronJob1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCronJob1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2alpha1CronJob PatchNamespacedCronJob1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedCronJob1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedCronJob1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJob1WithHttpMessagesAsync(body, 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 V2alpha1CronJob ReadNamespacedCronJobStatus1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedCronJobStatus1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedCronJobStatus1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedCronJobStatus1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2alpha1CronJob ReplaceNamespacedCronJobStatus1(this IKubernetes operations, V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedCronJobStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedCronJobStatus1Async(this IKubernetes operations, V2alpha1CronJob body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCronJobStatus1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V2alpha1CronJob PatchNamespacedCronJobStatus1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedCronJobStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedCronJobStatus1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedCronJobStatus1WithHttpMessagesAsync(body, name, namespaceParameter, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources15(this IKubernetes operations) - { - return operations.GetAPIResources15Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1CertificateSigningRequestList ListCertificateSigningRequest(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListCertificateSigningRequestAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListCertificateSigningRequestAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListCertificateSigningRequestWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CertificateSigningRequest CreateCertificateSigningRequest(this IKubernetes operations, V1beta1CertificateSigningRequest body, string pretty = default(string)) - { - return operations.CreateCertificateSigningRequestAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateCertificateSigningRequestAsync(this IKubernetes operations, V1beta1CertificateSigningRequest body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateCertificateSigningRequestWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionCertificateSigningRequest(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionCertificateSigningRequestAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionCertificateSigningRequestAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionCertificateSigningRequestWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CertificateSigningRequest ReadCertificateSigningRequest(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadCertificateSigningRequestAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadCertificateSigningRequestAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadCertificateSigningRequestWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CertificateSigningRequest ReplaceCertificateSigningRequest(this IKubernetes operations, V1beta1CertificateSigningRequest body, string name, string pretty = default(string)) - { - return operations.ReplaceCertificateSigningRequestAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceCertificateSigningRequestAsync(this IKubernetes operations, V1beta1CertificateSigningRequest body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCertificateSigningRequestWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteCertificateSigningRequest(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteCertificateSigningRequestAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteCertificateSigningRequestAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCertificateSigningRequestWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CertificateSigningRequest PatchCertificateSigningRequest(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchCertificateSigningRequestAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchCertificateSigningRequestAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchCertificateSigningRequestWithHttpMessagesAsync(body, name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CertificateSigningRequest ReplaceCertificateSigningRequestApproval(this IKubernetes operations, V1beta1CertificateSigningRequest body, string name, string pretty = default(string)) - { - return operations.ReplaceCertificateSigningRequestApprovalAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace approval of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceCertificateSigningRequestApprovalAsync(this IKubernetes operations, V1beta1CertificateSigningRequest body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCertificateSigningRequestApprovalWithHttpMessagesAsync(body, name, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1CertificateSigningRequest ReplaceCertificateSigningRequestStatus(this IKubernetes operations, V1beta1CertificateSigningRequest body, string name, string pretty = default(string)) - { - return operations.ReplaceCertificateSigningRequestStatusAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace status of the specified CertificateSigningRequest - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the CertificateSigningRequest - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceCertificateSigningRequestStatusAsync(this IKubernetes operations, V1beta1CertificateSigningRequest body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceCertificateSigningRequestStatusWithHttpMessagesAsync(body, name, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources16(this IKubernetes operations) - { - return operations.GetAPIResources16Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1DaemonSetList ListDaemonSetForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListDaemonSetForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind DaemonSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListDaemonSetForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDaemonSetForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static Extensionsv1beta1DeploymentList ListDeploymentForAllNamespaces2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListDeploymentForAllNamespaces2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Deployment - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListDeploymentForAllNamespaces2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListDeploymentForAllNamespaces2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1IngressList ListIngressForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListIngressForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Ingress - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListIngressForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListIngressForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1DaemonSetList ListNamespacedDaemonSet1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedDaemonSet1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedDaemonSet1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDaemonSet1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1DaemonSet CreateNamespacedDaemonSet1(this IKubernetes operations, V1beta1DaemonSet body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDaemonSet1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a DaemonSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDaemonSet1Async(this IKubernetes operations, V1beta1DaemonSet body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDaemonSet1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedDaemonSet1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedDaemonSet1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedDaemonSet1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDaemonSet1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1DaemonSet ReadNamespacedDaemonSet1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedDaemonSet1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDaemonSet1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDaemonSet1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1DaemonSet ReplaceNamespacedDaemonSet1(this IKubernetes operations, V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDaemonSet1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDaemonSet1Async(this IKubernetes operations, V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDaemonSet1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDaemonSet1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedDaemonSet1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedDaemonSet1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDaemonSet1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1DaemonSet PatchNamespacedDaemonSet1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDaemonSet1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDaemonSet1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDaemonSet1WithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta1DaemonSet ReadNamespacedDaemonSetStatus1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDaemonSetStatus1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDaemonSetStatus1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDaemonSetStatus1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1DaemonSet ReplaceNamespacedDaemonSetStatus1(this IKubernetes operations, V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDaemonSetStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDaemonSetStatus1Async(this IKubernetes operations, V1beta1DaemonSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDaemonSetStatus1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1DaemonSet PatchNamespacedDaemonSetStatus1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDaemonSetStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDaemonSetStatus1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDaemonSetStatus1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 Extensionsv1beta1DeploymentList ListNamespacedDeployment2(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedDeployment2Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedDeployment2Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedDeployment2WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Deployment CreateNamespacedDeployment2(this IKubernetes operations, Extensionsv1beta1Deployment body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDeployment2Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDeployment2Async(this IKubernetes operations, Extensionsv1beta1Deployment body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDeployment2WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedDeployment2(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedDeployment2Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedDeployment2Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedDeployment2WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Deployment ReadNamespacedDeployment2(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedDeployment2Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeployment2Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeployment2WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Deployment ReplaceNamespacedDeployment2(this IKubernetes operations, Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeployment2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeployment2Async(this IKubernetes operations, Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeployment2WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedDeployment2(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedDeployment2Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedDeployment2Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedDeployment2WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Deployment PatchNamespacedDeployment2(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeployment2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeployment2Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeployment2WithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create rollback of a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1DeploymentRollback CreateNamespacedDeploymentRollback1(this IKubernetes operations, Extensionsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedDeploymentRollback1Async(body, name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create rollback of a Deployment - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the DeploymentRollback - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedDeploymentRollback1Async(this IKubernetes operations, Extensionsv1beta1DeploymentRollback body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedDeploymentRollback1WithHttpMessagesAsync(body, name, namespaceParameter, 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 Extensionsv1beta1Scale ReadNamespacedDeploymentScale2(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentScale2Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentScale2Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentScale2WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Scale ReplaceNamespacedDeploymentScale2(this IKubernetes operations, Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentScale2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentScale2Async(this IKubernetes operations, Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentScale2WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Scale PatchNamespacedDeploymentScale2(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentScale2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentScale2Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentScale2WithHttpMessagesAsync(body, name, namespaceParameter, 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 Extensionsv1beta1Deployment ReadNamespacedDeploymentStatus2(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedDeploymentStatus2Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedDeploymentStatus2Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedDeploymentStatus2WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Deployment ReplaceNamespacedDeploymentStatus2(this IKubernetes operations, Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedDeploymentStatus2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedDeploymentStatus2Async(this IKubernetes operations, Extensionsv1beta1Deployment body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedDeploymentStatus2WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Deployment PatchNamespacedDeploymentStatus2(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedDeploymentStatus2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedDeploymentStatus2Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedDeploymentStatus2WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1IngressList ListNamespacedIngress(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedIngressAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedIngressAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedIngressWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Ingress CreateNamespacedIngress(this IKubernetes operations, V1beta1Ingress body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedIngressAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create an Ingress - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedIngressAsync(this IKubernetes operations, V1beta1Ingress body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedIngressWithHttpMessagesAsync(body, namespaceParameter, pretty, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedIngress(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedIngressAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedIngressAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedIngressWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Ingress ReadNamespacedIngress(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedIngressAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedIngressAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedIngressWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Ingress ReplaceNamespacedIngress(this IKubernetes operations, V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedIngressAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedIngressAsync(this IKubernetes operations, V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedIngressWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedIngress(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedIngressAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedIngressAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedIngressWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Ingress PatchNamespacedIngress(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedIngressAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedIngressAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedIngressWithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta1Ingress ReadNamespacedIngressStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedIngressStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedIngressStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedIngressStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Ingress ReplaceNamespacedIngressStatus(this IKubernetes operations, V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedIngressStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedIngressStatusAsync(this IKubernetes operations, V1beta1Ingress body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedIngressStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Ingress PatchNamespacedIngressStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedIngressStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedIngressStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedIngressStatusWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1NetworkPolicyList ListNamespacedNetworkPolicy(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedNetworkPolicyAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedNetworkPolicyAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedNetworkPolicyWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1NetworkPolicy CreateNamespacedNetworkPolicy(this IKubernetes operations, V1beta1NetworkPolicy body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedNetworkPolicyAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedNetworkPolicyAsync(this IKubernetes operations, V1beta1NetworkPolicy body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedNetworkPolicyWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedNetworkPolicy(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedNetworkPolicyAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedNetworkPolicyAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedNetworkPolicyWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1NetworkPolicy ReadNamespacedNetworkPolicy(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedNetworkPolicyAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedNetworkPolicyAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedNetworkPolicyWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1NetworkPolicy ReplaceNamespacedNetworkPolicy(this IKubernetes operations, V1beta1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedNetworkPolicyAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedNetworkPolicyAsync(this IKubernetes operations, V1beta1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedNetworkPolicyWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedNetworkPolicy(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedNetworkPolicyAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedNetworkPolicyAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedNetworkPolicyWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1NetworkPolicy PatchNamespacedNetworkPolicy(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedNetworkPolicyAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedNetworkPolicyAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedNetworkPolicyWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1ReplicaSetList ListNamespacedReplicaSet1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedReplicaSet1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedReplicaSet1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedReplicaSet1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ReplicaSet CreateNamespacedReplicaSet1(this IKubernetes operations, V1beta1ReplicaSet body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedReplicaSet1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ReplicaSet - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedReplicaSet1Async(this IKubernetes operations, V1beta1ReplicaSet body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedReplicaSet1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedReplicaSet1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedReplicaSet1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedReplicaSet1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedReplicaSet1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ReplicaSet ReadNamespacedReplicaSet1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedReplicaSet1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicaSet1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSet1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ReplicaSet ReplaceNamespacedReplicaSet1(this IKubernetes operations, V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicaSet1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicaSet1Async(this IKubernetes operations, V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSet1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedReplicaSet1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedReplicaSet1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedReplicaSet1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedReplicaSet1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ReplicaSet PatchNamespacedReplicaSet1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicaSet1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicaSet1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSet1WithHttpMessagesAsync(body, name, namespaceParameter, 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 Extensionsv1beta1Scale ReadNamespacedReplicaSetScale1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedReplicaSetScale1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicaSetScale1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetScale1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Scale ReplaceNamespacedReplicaSetScale1(this IKubernetes operations, Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicaSetScale1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicaSetScale1Async(this IKubernetes operations, Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetScale1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static Extensionsv1beta1Scale PatchNamespacedReplicaSetScale1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicaSetScale1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicaSetScale1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetScale1WithHttpMessagesAsync(body, name, namespaceParameter, 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 V1beta1ReplicaSet ReadNamespacedReplicaSetStatus1(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedReplicaSetStatus1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicaSetStatus1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicaSetStatus1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ReplicaSet ReplaceNamespacedReplicaSetStatus1(this IKubernetes operations, V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicaSetStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicaSetStatus1Async(this IKubernetes operations, V1beta1ReplicaSet body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicaSetStatus1WithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ReplicaSet PatchNamespacedReplicaSetStatus1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicaSetStatus1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicaSetStatus1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicaSetStatus1WithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read scale of the specified ReplicationControllerDummy - /// - /// - /// 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 Extensionsv1beta1Scale ReadNamespacedReplicationControllerDummyScale(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedReplicationControllerDummyScaleAsync(name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// read scale of the specified ReplicationControllerDummy - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedReplicationControllerDummyScaleAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace scale of the specified ReplicationControllerDummy - /// - /// - /// 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 Extensionsv1beta1Scale ReplaceNamespacedReplicationControllerDummyScale(this IKubernetes operations, Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedReplicationControllerDummyScaleAsync(body, name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace scale of the specified ReplicationControllerDummy - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedReplicationControllerDummyScaleAsync(this IKubernetes operations, Extensionsv1beta1Scale body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update scale of the specified ReplicationControllerDummy - /// - /// - /// 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 Extensionsv1beta1Scale PatchNamespacedReplicationControllerDummyScale(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedReplicationControllerDummyScaleAsync(body, name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update scale of the specified ReplicationControllerDummy - /// - /// - /// 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. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedReplicationControllerDummyScaleAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedReplicationControllerDummyScaleWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1NetworkPolicyList ListNetworkPolicyForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListNetworkPolicyForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListNetworkPolicyForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNetworkPolicyForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListPodSecurityPolicyAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListPodSecurityPolicyAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodSecurityPolicyWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy CreatePodSecurityPolicy(this IKubernetes operations, V1beta1PodSecurityPolicy body, string pretty = default(string)) - { - return operations.CreatePodSecurityPolicyAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreatePodSecurityPolicyAsync(this IKubernetes operations, V1beta1PodSecurityPolicy body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePodSecurityPolicyWithHttpMessagesAsync(body, pretty, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionPodSecurityPolicy(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionPodSecurityPolicyAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionPodSecurityPolicyAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPodSecurityPolicyWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodSecurityPolicy ReadPodSecurityPolicy(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadPodSecurityPolicyAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadPodSecurityPolicyAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPodSecurityPolicyWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplacePodSecurityPolicy(this IKubernetes operations, V1beta1PodSecurityPolicy body, string name, string pretty = default(string)) - { - return operations.ReplacePodSecurityPolicyAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplacePodSecurityPolicyAsync(this IKubernetes operations, V1beta1PodSecurityPolicy body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePodSecurityPolicyWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeletePodSecurityPolicy(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeletePodSecurityPolicyAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeletePodSecurityPolicyAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePodSecurityPolicyWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchPodSecurityPolicy(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchPodSecurityPolicyAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PodSecurityPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodSecurityPolicy - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchPodSecurityPolicyAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPodSecurityPolicyWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1ReplicaSetList ListReplicaSetForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListReplicaSetForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind ReplicaSet - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListReplicaSetForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListReplicaSetForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources17(this IKubernetes operations) - { - return operations.GetAPIResources17Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 ListNamespacedNetworkPolicy1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedNetworkPolicy1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedNetworkPolicy1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedNetworkPolicy1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy CreateNamespacedNetworkPolicy1(this IKubernetes operations, V1NetworkPolicy body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedNetworkPolicy1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a NetworkPolicy - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedNetworkPolicy1Async(this IKubernetes operations, V1NetworkPolicy body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedNetworkPolicy1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedNetworkPolicy1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedNetworkPolicy1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedNetworkPolicy1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedNetworkPolicy1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy ReadNamespacedNetworkPolicy1(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedNetworkPolicy1Async(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedNetworkPolicy1Async(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedNetworkPolicy1WithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy ReplaceNamespacedNetworkPolicy1(this IKubernetes operations, V1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedNetworkPolicy1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedNetworkPolicy1Async(this IKubernetes operations, V1NetworkPolicy body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedNetworkPolicy1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedNetworkPolicy1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedNetworkPolicy1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedNetworkPolicy1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedNetworkPolicy1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1NetworkPolicy PatchNamespacedNetworkPolicy1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedNetworkPolicy1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedNetworkPolicy1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedNetworkPolicy1WithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1NetworkPolicyList ListNetworkPolicyForAllNamespaces1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListNetworkPolicyForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind NetworkPolicy - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListNetworkPolicyForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNetworkPolicyForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources18(this IKubernetes operations) - { - return operations.GetAPIResources18Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 ListNamespacedPodDisruptionBudget(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedPodDisruptionBudgetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodDisruptionBudgetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget CreateNamespacedPodDisruptionBudget(this IKubernetes operations, V1beta1PodDisruptionBudget body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPodDisruptionBudgetAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PodDisruptionBudget - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, V1beta1PodDisruptionBudget body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodDisruptionBudgetWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedPodDisruptionBudget(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedPodDisruptionBudgetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodDisruptionBudgetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReadNamespacedPodDisruptionBudget(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedPodDisruptionBudgetAsync(name, namespaceParameter, exact, export, pretty).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 - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodDisruptionBudgetWithHttpMessagesAsync(name, namespaceParameter, exact, export, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReplaceNamespacedPodDisruptionBudget(this IKubernetes operations, V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPodDisruptionBudgetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodDisruptionBudgetWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPodDisruptionBudget(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedPodDisruptionBudgetAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodDisruptionBudgetWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget PatchNamespacedPodDisruptionBudget(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPodDisruptionBudgetAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPodDisruptionBudgetAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodDisruptionBudgetWithHttpMessagesAsync(body, 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 ReadNamespacedPodDisruptionBudgetStatus(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedPodDisruptionBudgetStatusAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPodDisruptionBudgetStatusAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget ReplaceNamespacedPodDisruptionBudgetStatus(this IKubernetes operations, V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPodDisruptionBudgetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPodDisruptionBudgetStatusAsync(this IKubernetes operations, V1beta1PodDisruptionBudget body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(body, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1PodDisruptionBudget PatchNamespacedPodDisruptionBudgetStatus(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPodDisruptionBudgetStatusAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPodDisruptionBudgetStatusAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodDisruptionBudgetStatusWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1PodDisruptionBudgetList ListPodDisruptionBudgetForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListPodDisruptionBudgetForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodDisruptionBudget - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListPodDisruptionBudgetForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodDisruptionBudgetForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources19(this IKubernetes operations) - { - return operations.GetAPIResources19Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterRoleBindingAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterRoleBindingAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleBindingWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRoleBinding CreateClusterRoleBinding(this IKubernetes operations, V1ClusterRoleBinding body, string pretty = default(string)) - { - return operations.CreateClusterRoleBindingAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterRoleBindingAsync(this IKubernetes operations, V1ClusterRoleBinding body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleBindingWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionClusterRoleBinding(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionClusterRoleBindingAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionClusterRoleBindingAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleBindingWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadClusterRoleBindingAsync(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadClusterRoleBindingAsync(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleBindingWithHttpMessagesAsync(name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceClusterRoleBinding(this IKubernetes operations, V1ClusterRoleBinding body, string name, string pretty = default(string)) - { - return operations.ReplaceClusterRoleBindingAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterRoleBindingAsync(this IKubernetes operations, V1ClusterRoleBinding body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleBindingWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRoleBinding(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteClusterRoleBindingAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterRoleBindingAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleBindingWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchClusterRoleBinding(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchClusterRoleBindingAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchClusterRoleBindingAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleBindingWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterRoleAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterRoleAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1ClusterRole CreateClusterRole(this IKubernetes operations, V1ClusterRole body, string pretty = default(string)) - { - return operations.CreateClusterRoleAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterRoleAsync(this IKubernetes operations, V1ClusterRole body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionClusterRole(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionClusterRoleAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionClusterRoleAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadClusterRoleAsync(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadClusterRoleAsync(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleWithHttpMessagesAsync(name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceClusterRole(this IKubernetes operations, V1ClusterRole body, string name, string pretty = default(string)) - { - return operations.ReplaceClusterRoleAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterRoleAsync(this IKubernetes operations, V1ClusterRole body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRole(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteClusterRoleAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterRoleAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchClusterRole(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchClusterRoleAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchClusterRoleAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleWithHttpMessagesAsync(body, name, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedRoleBindingAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedRoleBindingAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleBindingWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding CreateNamespacedRoleBinding(this IKubernetes operations, V1RoleBinding body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedRoleBindingAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedRoleBindingAsync(this IKubernetes operations, V1RoleBinding body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleBindingWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedRoleBinding(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedRoleBindingAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedRoleBindingAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleBindingWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadNamespacedRoleBindingAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedRoleBindingAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleBindingWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding ReplaceNamespacedRoleBinding(this IKubernetes operations, V1RoleBinding body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedRoleBindingAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedRoleBindingAsync(this IKubernetes operations, V1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleBindingWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRoleBinding(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedRoleBindingAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedRoleBindingAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleBindingWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1RoleBinding PatchNamespacedRoleBinding(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedRoleBindingAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedRoleBindingAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleBindingWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedRoleAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedRoleAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role CreateNamespacedRole(this IKubernetes operations, V1Role body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedRoleAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedRoleAsync(this IKubernetes operations, V1Role body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleWithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedRole(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedRoleAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedRoleAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadNamespacedRoleAsync(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedRoleAsync(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleWithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role ReplaceNamespacedRole(this IKubernetes operations, V1Role body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedRoleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedRoleAsync(this IKubernetes operations, V1Role body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleWithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRole(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedRoleAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedRoleAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Role PatchNamespacedRole(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedRoleAsync(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedRoleAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListRoleBindingForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListRoleBindingForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleBindingForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListRoleForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListRoleForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterRoleBinding1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterRoleBinding1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleBinding1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRoleBinding CreateClusterRoleBinding1(this IKubernetes operations, V1alpha1ClusterRoleBinding body, string pretty = default(string)) - { - return operations.CreateClusterRoleBinding1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterRoleBinding1Async(this IKubernetes operations, V1alpha1ClusterRoleBinding body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleBinding1WithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionClusterRoleBinding1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionClusterRoleBinding1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionClusterRoleBinding1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleBinding1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadClusterRoleBinding1Async(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadClusterRoleBinding1Async(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleBinding1WithHttpMessagesAsync(name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceClusterRoleBinding1(this IKubernetes operations, V1alpha1ClusterRoleBinding body, string name, string pretty = default(string)) - { - return operations.ReplaceClusterRoleBinding1Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterRoleBinding1Async(this IKubernetes operations, V1alpha1ClusterRoleBinding body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleBinding1WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRoleBinding1(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteClusterRoleBinding1Async(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterRoleBinding1Async(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleBinding1WithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchClusterRoleBinding1(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchClusterRoleBinding1Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchClusterRoleBinding1Async(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleBinding1WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterRole1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterRole1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRole1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1ClusterRole CreateClusterRole1(this IKubernetes operations, V1alpha1ClusterRole body, string pretty = default(string)) - { - return operations.CreateClusterRole1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterRole1Async(this IKubernetes operations, V1alpha1ClusterRole body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRole1WithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionClusterRole1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionClusterRole1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionClusterRole1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRole1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadClusterRole1Async(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadClusterRole1Async(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRole1WithHttpMessagesAsync(name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceClusterRole1(this IKubernetes operations, V1alpha1ClusterRole body, string name, string pretty = default(string)) - { - return operations.ReplaceClusterRole1Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterRole1Async(this IKubernetes operations, V1alpha1ClusterRole body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRole1WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRole1(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteClusterRole1Async(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterRole1Async(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRole1WithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchClusterRole1(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchClusterRole1Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchClusterRole1Async(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRole1WithHttpMessagesAsync(body, name, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedRoleBinding1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedRoleBinding1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleBinding1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding CreateNamespacedRoleBinding1(this IKubernetes operations, V1alpha1RoleBinding body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedRoleBinding1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedRoleBinding1Async(this IKubernetes operations, V1alpha1RoleBinding body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleBinding1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedRoleBinding1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedRoleBinding1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedRoleBinding1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleBinding1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadNamespacedRoleBinding1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedRoleBinding1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleBinding1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding ReplaceNamespacedRoleBinding1(this IKubernetes operations, V1alpha1RoleBinding body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedRoleBinding1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedRoleBinding1Async(this IKubernetes operations, V1alpha1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleBinding1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRoleBinding1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedRoleBinding1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedRoleBinding1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleBinding1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1RoleBinding PatchNamespacedRoleBinding1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedRoleBinding1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedRoleBinding1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleBinding1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedRole1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedRole1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRole1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role CreateNamespacedRole1(this IKubernetes operations, V1alpha1Role body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedRole1Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedRole1Async(this IKubernetes operations, V1alpha1Role body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRole1WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedRole1(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedRole1Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedRole1Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRole1WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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, string pretty = default(string)) - { - return operations.ReadNamespacedRole1Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedRole1Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRole1WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role ReplaceNamespacedRole1(this IKubernetes operations, V1alpha1Role body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedRole1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedRole1Async(this IKubernetes operations, V1alpha1Role body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRole1WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRole1(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedRole1Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedRole1Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRole1WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1Role PatchNamespacedRole1(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedRole1Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedRole1Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRole1WithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListRoleBindingForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListRoleBindingForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleBindingForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListRoleForAllNamespaces1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListRoleForAllNamespaces1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleForAllNamespaces1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1ClusterRoleBindingList ListClusterRoleBinding2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterRoleBinding2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterRoleBinding2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRoleBinding2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ClusterRoleBinding CreateClusterRoleBinding2(this IKubernetes operations, V1beta1ClusterRoleBinding body, string pretty = default(string)) - { - return operations.CreateClusterRoleBinding2Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterRoleBinding2Async(this IKubernetes operations, V1beta1ClusterRoleBinding body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRoleBinding2WithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionClusterRoleBinding2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionClusterRoleBinding2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionClusterRoleBinding2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRoleBinding2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 V1beta1ClusterRoleBinding ReadClusterRoleBinding2(this IKubernetes operations, string name, string pretty = default(string)) - { - return operations.ReadClusterRoleBinding2Async(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadClusterRoleBinding2Async(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRoleBinding2WithHttpMessagesAsync(name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ClusterRoleBinding ReplaceClusterRoleBinding2(this IKubernetes operations, V1beta1ClusterRoleBinding body, string name, string pretty = default(string)) - { - return operations.ReplaceClusterRoleBinding2Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterRoleBinding2Async(this IKubernetes operations, V1beta1ClusterRoleBinding body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRoleBinding2WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRoleBinding2(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteClusterRoleBinding2Async(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterRoleBinding2Async(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRoleBinding2WithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ClusterRoleBinding PatchClusterRoleBinding2(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchClusterRoleBinding2Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRoleBinding - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchClusterRoleBinding2Async(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRoleBinding2WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1ClusterRoleList ListClusterRole2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterRole2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterRole2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterRole2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ClusterRole CreateClusterRole2(this IKubernetes operations, V1beta1ClusterRole body, string pretty = default(string)) - { - return operations.CreateClusterRole2Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterRole2Async(this IKubernetes operations, V1beta1ClusterRole body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterRole2WithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionClusterRole2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionClusterRole2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionClusterRole2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionClusterRole2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 V1beta1ClusterRole ReadClusterRole2(this IKubernetes operations, string name, string pretty = default(string)) - { - return operations.ReadClusterRole2Async(name, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadClusterRole2Async(this IKubernetes operations, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadClusterRole2WithHttpMessagesAsync(name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ClusterRole ReplaceClusterRole2(this IKubernetes operations, V1beta1ClusterRole body, string name, string pretty = default(string)) - { - return operations.ReplaceClusterRole2Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterRole2Async(this IKubernetes operations, V1beta1ClusterRole body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterRole2WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteClusterRole2(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteClusterRole2Async(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterRole2Async(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterRole2WithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1ClusterRole PatchClusterRole2(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchClusterRole2Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified ClusterRole - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the ClusterRole - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchClusterRole2Async(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchClusterRole2WithHttpMessagesAsync(body, name, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1RoleBindingList ListNamespacedRoleBinding2(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedRoleBinding2Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedRoleBinding2Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRoleBinding2WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RoleBinding CreateNamespacedRoleBinding2(this IKubernetes operations, V1beta1RoleBinding body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedRoleBinding2Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a RoleBinding - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedRoleBinding2Async(this IKubernetes operations, V1beta1RoleBinding body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRoleBinding2WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedRoleBinding2(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedRoleBinding2Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedRoleBinding2Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRoleBinding2WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 V1beta1RoleBinding ReadNamespacedRoleBinding2(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedRoleBinding2Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedRoleBinding2Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRoleBinding2WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RoleBinding ReplaceNamespacedRoleBinding2(this IKubernetes operations, V1beta1RoleBinding body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedRoleBinding2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedRoleBinding2Async(this IKubernetes operations, V1beta1RoleBinding body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRoleBinding2WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRoleBinding2(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedRoleBinding2Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedRoleBinding2Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRoleBinding2WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1RoleBinding PatchNamespacedRoleBinding2(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedRoleBinding2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedRoleBinding2Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRoleBinding2WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1RoleList ListNamespacedRole2(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedRole2Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 - /// - /// - /// The continue option should be set when retrieving more results from the - /// server. Since this value is server defined, clients may only use the - /// continue value from a previous query result with identical query parameters - /// (except for the value of continue) and the server may reject a continue - /// value it does not recognize. If the specified continue value is no longer - /// valid whether 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedRole2Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedRole2WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Role CreateNamespacedRole2(this IKubernetes operations, V1beta1Role body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedRole2Async(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a Role - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedRole2Async(this IKubernetes operations, V1beta1Role body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedRole2WithHttpMessagesAsync(body, namespaceParameter, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedRole2(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedRole2Async(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedRole2Async(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedRole2WithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, 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 V1beta1Role ReadNamespacedRole2(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReadNamespacedRole2Async(name, namespaceParameter, pretty).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. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedRole2Async(this IKubernetes operations, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedRole2WithHttpMessagesAsync(name, namespaceParameter, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Role ReplaceNamespacedRole2(this IKubernetes operations, V1beta1Role body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedRole2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedRole2Async(this IKubernetes operations, V1beta1Role body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedRole2WithHttpMessagesAsync(body, name, namespaceParameter, 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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedRole2(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedRole2Async(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).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 - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedRole2Async(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedRole2WithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, 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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1Role PatchNamespacedRole2(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedRole2Async(body, name, namespaceParameter, pretty).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 - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedRole2Async(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedRole2WithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1RoleBindingList ListRoleBindingForAllNamespaces2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListRoleBindingForAllNamespaces2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind RoleBinding - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListRoleBindingForAllNamespaces2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleBindingForAllNamespaces2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind Role - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1beta1RoleList ListRoleForAllNamespaces2(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListRoleForAllNamespaces2Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind Role - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListRoleForAllNamespaces2Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListRoleForAllNamespaces2WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources22(this IKubernetes operations) - { - return operations.GetAPIResources22Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 ListPriorityClass(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListPriorityClassAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListPriorityClassAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPriorityClassWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClass CreatePriorityClass(this IKubernetes operations, V1alpha1PriorityClass body, string pretty = default(string)) - { - return operations.CreatePriorityClassAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreatePriorityClassAsync(this IKubernetes operations, V1alpha1PriorityClass body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreatePriorityClassWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionPriorityClass(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionPriorityClassAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionPriorityClassAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionPriorityClassWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PriorityClass ReadPriorityClass(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadPriorityClassAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PriorityClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadPriorityClassAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadPriorityClassWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplacePriorityClass(this IKubernetes operations, V1alpha1PriorityClass body, string name, string pretty = default(string)) - { - return operations.ReplacePriorityClassAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplacePriorityClassAsync(this IKubernetes operations, V1alpha1PriorityClass body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplacePriorityClassWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeletePriorityClass(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeletePriorityClassAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeletePriorityClassAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeletePriorityClassWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchPriorityClass(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchPriorityClassAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PriorityClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PriorityClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchPriorityClassAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchPriorityClassWithHttpMessagesAsync(body, name, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources23(this IKubernetes operations) - { - return operations.GetAPIResources23Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1alpha1PodPresetList ListNamespacedPodPreset(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedPodPresetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedPodPresetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedPodPresetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PodPreset CreateNamespacedPodPreset(this IKubernetes operations, V1alpha1PodPreset body, string namespaceParameter, string pretty = default(string)) - { - return operations.CreateNamespacedPodPresetAsync(body, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedPodPresetAsync(this IKubernetes operations, V1alpha1PodPreset body, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedPodPresetWithHttpMessagesAsync(body, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete collection of PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionNamespacedPodPreset(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionNamespacedPodPresetAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete collection of PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionNamespacedPodPresetAsync(this IKubernetes operations, string namespaceParameter, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionNamespacedPodPresetWithHttpMessagesAsync(namespaceParameter, continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PodPreset ReadNamespacedPodPreset(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadNamespacedPodPresetAsync(name, namespaceParameter, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadNamespacedPodPresetAsync(this IKubernetes operations, string name, string namespaceParameter, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadNamespacedPodPresetWithHttpMessagesAsync(name, namespaceParameter, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PodPreset ReplaceNamespacedPodPreset(this IKubernetes operations, V1alpha1PodPreset body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.ReplaceNamespacedPodPresetAsync(body, name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedPodPresetAsync(this IKubernetes operations, V1alpha1PodPreset body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedPodPresetWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteNamespacedPodPreset(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteNamespacedPodPresetAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedPodPresetAsync(this IKubernetes operations, V1DeleteOptions body, string name, string namespaceParameter, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedPodPresetWithHttpMessagesAsync(body, name, namespaceParameter, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1alpha1PodPreset PatchNamespacedPodPreset(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string)) - { - return operations.PatchNamespacedPodPresetAsync(body, name, namespaceParameter, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified PodPreset - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the PodPreset - /// - /// - /// object name and auth scope, such as for teams and projects - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchNamespacedPodPresetAsync(this IKubernetes operations, object body, string name, string namespaceParameter, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchNamespacedPodPresetWithHttpMessagesAsync(body, name, namespaceParameter, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - public static V1alpha1PodPresetList ListPodPresetForAllNamespaces(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?)) - { - return operations.ListPodPresetForAllNamespacesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind PodPreset - /// - /// - /// 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// Watch for changes to the described resources and return them as a stream of - /// add, update, and remove notifications. Specify resourceVersion. - /// - /// - /// The cancellation token. - /// - public static async Task ListPodPresetForAllNamespacesAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string pretty = default(string), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListPodPresetForAllNamespacesWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, 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().GetAwaiter().GetResult(); - } - - /// - /// get information of a group - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 available resources - /// - /// - /// The operations group for this extension method. - /// - public static V1APIResourceList GetAPIResources24(this IKubernetes operations) - { - return operations.GetAPIResources24Async().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListStorageClassAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListStorageClassAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStorageClassWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass CreateStorageClass(this IKubernetes operations, V1StorageClass body, string pretty = default(string)) - { - return operations.CreateStorageClassAsync(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateStorageClassAsync(this IKubernetes operations, V1StorageClass body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateStorageClassWithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionStorageClass(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionStorageClassAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionStorageClassAsync(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionStorageClassWithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1StorageClass ReadStorageClass(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadStorageClassAsync(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadStorageClassAsync(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadStorageClassWithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace 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 ReplaceStorageClass(this IKubernetes operations, V1StorageClass body, string name, string pretty = default(string)) - { - return operations.ReplaceStorageClassAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceStorageClassAsync(this IKubernetes operations, V1StorageClass body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceStorageClassWithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteStorageClass(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteStorageClassAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteStorageClassAsync(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteStorageClassWithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update 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 PatchStorageClass(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchStorageClassAsync(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchStorageClassAsync(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchStorageClassWithHttpMessagesAsync(body, name, pretty, 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().GetAwaiter().GetResult(); - } - - /// - /// get available resources - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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; - } - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1beta1StorageClassList ListStorageClass1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListStorageClass1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).GetAwaiter().GetResult(); - } - - /// - /// list or watch objects of kind 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListStorageClass1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListStorageClass1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// create a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StorageClass CreateStorageClass1(this IKubernetes operations, V1beta1StorageClass body, string pretty = default(string)) - { - return operations.CreateStorageClass1Async(body, pretty).GetAwaiter().GetResult(); - } - - /// - /// create a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateStorageClass1Async(this IKubernetes operations, V1beta1StorageClass body, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateStorageClass1WithHttpMessagesAsync(body, 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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 V1Status DeleteCollectionStorageClass1(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.DeleteCollectionStorageClass1Async(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty).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 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. - /// - /// - /// 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. - /// - /// - /// Timeout for the list/watch call. - /// - /// - /// 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 cancellation token. - /// - public static async Task DeleteCollectionStorageClass1Async(this IKubernetes operations, string continueParameter = default(string), string fieldSelector = default(string), bool? includeUninitialized = default(bool?), string labelSelector = default(string), int? limit = default(int?), string resourceVersion = default(string), int? timeoutSeconds = default(int?), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteCollectionStorageClass1WithHttpMessagesAsync(continueParameter, fieldSelector, includeUninitialized, labelSelector, limit, resourceVersion, timeoutSeconds, watch, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// read the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StorageClass ReadStorageClass1(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string)) - { - return operations.ReadStorageClass1Async(name, exact, export, pretty).GetAwaiter().GetResult(); - } - - /// - /// read the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// name of the StorageClass - /// - /// - /// Should the export be exact. Exact export maintains cluster-specific fields - /// like 'Namespace'. - /// - /// - /// Should this value be exported. Export strips fields that a user can not - /// specify. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReadStorageClass1Async(this IKubernetes operations, string name, bool? exact = default(bool?), bool? export = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReadStorageClass1WithHttpMessagesAsync(name, exact, export, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// replace the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StorageClass ReplaceStorageClass1(this IKubernetes operations, V1beta1StorageClass body, string name, string pretty = default(string)) - { - return operations.ReplaceStorageClass1Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// replace the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceStorageClass1Async(this IKubernetes operations, V1beta1StorageClass body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceStorageClass1WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// delete a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1Status DeleteStorageClass1(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string)) - { - return operations.DeleteStorageClass1Async(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty).GetAwaiter().GetResult(); - } - - /// - /// delete a StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// The duration in seconds before the object should be deleted. Value must be - /// non-negative integer. The value zero indicates delete immediately. If this - /// value is nil, 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteStorageClass1Async(this IKubernetes operations, V1DeleteOptions body, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteStorageClass1WithHttpMessagesAsync(body, name, gracePeriodSeconds, orphanDependents, propagationPolicy, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// partially update the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static V1beta1StorageClass PatchStorageClass1(this IKubernetes operations, object body, string name, string pretty = default(string)) - { - return operations.PatchStorageClass1Async(body, name, pretty).GetAwaiter().GetResult(); - } - - /// - /// partially update the specified StorageClass - /// - /// - /// The operations group for this extension method. - /// - /// - /// - /// - /// name of the StorageClass - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task PatchStorageClass1Async(this IKubernetes operations, object body, string name, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PatchStorageClass1WithHttpMessagesAsync(body, name, pretty, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// The operations group for this extension method. - /// - public static void LogFileListHandler(this IKubernetes operations) - { - operations.LogFileListHandlerAsync().GetAwaiter().GetResult(); - } - - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - public static async Task LogFileListHandlerAsync(this IKubernetes operations, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.LogFileListHandlerWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// The operations group for this extension method. - /// - /// - /// path to the log - /// - public static void LogFileHandler(this IKubernetes operations, string logpath) - { - operations.LogFileHandlerAsync(logpath).GetAwaiter().GetResult(); - } - - /// - /// The operations group for this extension method. - /// - /// - /// path to the log - /// - /// - /// The cancellation token. - /// - public static async Task LogFileHandlerAsync(this IKubernetes operations, string logpath, CancellationToken cancellationToken = default(CancellationToken)) - { - (await operations.LogFileHandlerWithHttpMessagesAsync(logpath, null, cancellationToken).ConfigureAwait(false)).Dispose(); - } - - /// - /// get the code version - /// - /// - /// The operations group for this extension method. - /// - public static VersionInfo GetCode(this IKubernetes operations) - { - return operations.GetCodeAsync().GetAwaiter().GetResult(); - } - - /// - /// get the code version - /// - /// - /// The operations group for this extension method. - /// - /// - /// The cancellation token. - /// - 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 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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - public static object CreateClusterCustomObject(this IKubernetes operations, object body, string group, string version, string plural, string pretty = default(string)) - { - return operations.CreateClusterCustomObjectAsync(body, group, version, plural, pretty).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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateClusterCustomObjectAsync(this IKubernetes operations, object body, string group, string version, string plural, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateClusterCustomObjectWithHttpMessagesAsync(body, group, version, plural, 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. - /// - /// - /// A selector to restrict the list of returned objects by their labels. - /// Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListClusterCustomObjectAsync(group, version, plural, labelSelector, resourceVersion, watch, pretty).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. - /// - /// - /// A selector to restrict the list of returned objects by their labels. - /// Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListClusterCustomObjectAsync(this IKubernetes operations, string group, string version, string plural, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListClusterCustomObjectWithHttpMessagesAsync(group, version, plural, labelSelector, resourceVersion, watch, pretty, 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. - /// - /// - /// 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 pretty = default(string)) - { - return operations.CreateNamespacedCustomObjectAsync(body, group, version, namespaceParameter, plural, pretty).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. - /// - /// - /// If 'true', then the output is pretty printed. - /// - /// - /// The cancellation token. - /// - public static async Task CreateNamespacedCustomObjectAsync(this IKubernetes operations, object body, string group, string version, string namespaceParameter, string plural, string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateNamespacedCustomObjectWithHttpMessagesAsync(body, group, version, namespaceParameter, plural, 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. - /// - /// - /// A selector to restrict the list of returned objects by their labels. - /// Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string)) - { - return operations.ListNamespacedCustomObjectAsync(group, version, namespaceParameter, plural, labelSelector, resourceVersion, watch, pretty).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. - /// - /// - /// A selector to restrict the list of returned objects by their labels. - /// Defaults to everything. - /// - /// - /// 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. - /// - /// - /// 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 cancellation token. - /// - public static async Task ListNamespacedCustomObjectAsync(this IKubernetes operations, string group, string version, string namespaceParameter, string plural, string labelSelector = default(string), string resourceVersion = default(string), bool? watch = default(bool?), string pretty = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListNamespacedCustomObjectWithHttpMessagesAsync(group, version, namespaceParameter, plural, labelSelector, resourceVersion, watch, pretty, 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 - /// - public static object ReplaceClusterCustomObject(this IKubernetes operations, object body, string group, string version, string plural, string name) - { - return operations.ReplaceClusterCustomObjectAsync(body, group, version, plural, name).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 - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceClusterCustomObjectAsync(this IKubernetes operations, object body, string group, string version, string plural, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceClusterCustomObjectWithHttpMessagesAsync(body, group, version, plural, name, 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. - /// - public static object DeleteClusterCustomObject(this IKubernetes operations, V1DeleteOptions body, string group, string version, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string)) - { - return operations.DeleteClusterCustomObjectAsync(body, group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy).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. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteClusterCustomObjectAsync(this IKubernetes operations, V1DeleteOptions body, string group, string version, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteClusterCustomObjectWithHttpMessagesAsync(body, group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, 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).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 - /// - /// - /// The cancellation token. - /// - 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 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 - /// - public static object ReplaceNamespacedCustomObject(this IKubernetes operations, object body, string group, string version, string namespaceParameter, string plural, string name) - { - return operations.ReplaceNamespacedCustomObjectAsync(body, group, version, namespaceParameter, plural, name).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 - /// - /// - /// The cancellation token. - /// - public static async Task ReplaceNamespacedCustomObjectAsync(this IKubernetes operations, object body, string group, string version, string namespaceParameter, string plural, string name, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ReplaceNamespacedCustomObjectWithHttpMessagesAsync(body, group, version, namespaceParameter, plural, name, 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. - /// - public static object DeleteNamespacedCustomObject(this IKubernetes operations, V1DeleteOptions body, string group, string version, string namespaceParameter, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string)) - { - return operations.DeleteNamespacedCustomObjectAsync(body, group, version, namespaceParameter, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy).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. - /// - /// - /// The cancellation token. - /// - public static async Task DeleteNamespacedCustomObjectAsync(this IKubernetes operations, V1DeleteOptions body, string group, string version, string namespaceParameter, string plural, string name, int? gracePeriodSeconds = default(int?), bool? orphanDependents = default(bool?), string propagationPolicy = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.DeleteNamespacedCustomObjectWithHttpMessagesAsync(body, group, version, namespaceParameter, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, 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).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 - /// - /// - /// The cancellation token. - /// - 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; - } - } - - } -} diff --git a/src/generated/Models/Appsv1beta1Deployment.cs b/src/generated/Models/Appsv1beta1Deployment.cs deleted file mode 100644 index 51a5273d7..000000000 --- a/src/generated/Models/Appsv1beta1Deployment.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED - This group version of Deployment is deprecated by - /// apps/v1beta2/Deployment. See the release notes for more information. - /// Deployment enables declarative updates for Pods and ReplicaSets. - /// - public partial class Appsv1beta1Deployment - { - /// - /// Initializes a new instance of the Appsv1beta1Deployment class. - /// - public Appsv1beta1Deployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1Deployment 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/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/api-conventions.md#types-kinds - /// Standard object metadata. - /// Specification of the desired behavior of the - /// Deployment. - /// Most recently observed status of the - /// Deployment. - public Appsv1beta1Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Appsv1beta1DeploymentSpec spec = default(Appsv1beta1DeploymentSpec), Appsv1beta1DeploymentStatus status = default(Appsv1beta1DeploymentStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the - /// Deployment. - /// - [JsonProperty(PropertyName = "spec")] - public Appsv1beta1DeploymentSpec Spec { get; set; } - - /// - /// Gets or sets most recently observed status of the Deployment. - /// - [JsonProperty(PropertyName = "status")] - public Appsv1beta1DeploymentStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/Appsv1beta1DeploymentCondition.cs b/src/generated/Models/Appsv1beta1DeploymentCondition.cs deleted file mode 100644 index d7530d8f2..000000000 --- a/src/generated/Models/Appsv1beta1DeploymentCondition.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentCondition describes the state of a deployment at a certain - /// point. - /// - public partial class Appsv1beta1DeploymentCondition - { - /// - /// Initializes a new instance of the Appsv1beta1DeploymentCondition - /// class. - /// - public Appsv1beta1DeploymentCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1DeploymentCondition - /// 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 Appsv1beta1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets the last time this condition was updated. - /// - [JsonProperty(PropertyName = "lastUpdateTime")] - public System.DateTime? LastUpdateTime { get; set; } - - /// - /// Gets or sets a human readable message indicating details about the - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of deployment condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/Appsv1beta1DeploymentList.cs b/src/generated/Models/Appsv1beta1DeploymentList.cs deleted file mode 100644 index a517dc6ec..000000000 --- a/src/generated/Models/Appsv1beta1DeploymentList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DeploymentList is a list of Deployments. - /// - public partial class Appsv1beta1DeploymentList - { - /// - /// Initializes a new instance of the Appsv1beta1DeploymentList class. - /// - public Appsv1beta1DeploymentList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1DeploymentList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. - public Appsv1beta1DeploymentList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of Deployments. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/Appsv1beta1DeploymentRollback.cs b/src/generated/Models/Appsv1beta1DeploymentRollback.cs deleted file mode 100644 index 9c3653f89..000000000 --- a/src/generated/Models/Appsv1beta1DeploymentRollback.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DEPRECATED. DeploymentRollback stores the information required to - /// rollback a deployment. - /// - public partial class Appsv1beta1DeploymentRollback - { - /// - /// Initializes a new instance of the Appsv1beta1DeploymentRollback - /// class. - /// - public Appsv1beta1DeploymentRollback() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1DeploymentRollback - /// class. - /// - /// Required: This must match the Name of a - /// deployment. - /// The config of this deployment - /// rollback. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// The annotations to be updated to a - /// deployment - public Appsv1beta1DeploymentRollback(string name, Appsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary updatedAnnotations = default(IDictionary)) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - RollbackTo = rollbackTo; - UpdatedAnnotations = updatedAnnotations; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets required: This must match the Name of a deployment. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the config of this deployment rollback. - /// - [JsonProperty(PropertyName = "rollbackTo")] - public Appsv1beta1RollbackConfig RollbackTo { get; set; } - - /// - /// Gets or sets the annotations to be updated to a deployment - /// - [JsonProperty(PropertyName = "updatedAnnotations")] - public IDictionary UpdatedAnnotations { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (RollbackTo == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RollbackTo"); - } - } - } -} diff --git a/src/generated/Models/Appsv1beta1DeploymentSpec.cs b/src/generated/Models/Appsv1beta1DeploymentSpec.cs deleted file mode 100644 index 953ae4d61..000000000 --- a/src/generated/Models/Appsv1beta1DeploymentSpec.cs +++ /dev/null @@ -1,164 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentSpec is the specification of the desired behavior of the - /// Deployment. - /// - public partial class Appsv1beta1DeploymentSpec - { - /// - /// Initializes a new instance of the Appsv1beta1DeploymentSpec class. - /// - public Appsv1beta1DeploymentSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1DeploymentSpec class. - /// - /// 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 2. - /// DEPRECATED. The config this deployment is - /// rolling back to. Will be cleared after rollback is done. - /// Label selector for pods. Existing - /// ReplicaSets whose pods are selected by this will be the ones - /// affected by this deployment. - /// The deployment strategy to use to replace - /// existing pods with new ones. - public Appsv1beta1DeploymentSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), Appsv1beta1RollbackConfig rollbackTo = default(Appsv1beta1RollbackConfig), V1LabelSelector selector = default(V1LabelSelector), Appsv1beta1DeploymentStrategy strategy = default(Appsv1beta1DeploymentStrategy)) - { - MinReadySeconds = minReadySeconds; - Paused = paused; - ProgressDeadlineSeconds = progressDeadlineSeconds; - Replicas = replicas; - RevisionHistoryLimit = revisionHistoryLimit; - RollbackTo = rollbackTo; - Selector = selector; - Strategy = strategy; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets indicates that the deployment is paused. - /// - [JsonProperty(PropertyName = "paused")] - public bool? Paused { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the number of old ReplicaSets to retain to allow - /// rollback. This is a pointer to distinguish between explicit zero - /// and not specified. Defaults to 2. - /// - [JsonProperty(PropertyName = "revisionHistoryLimit")] - public int? RevisionHistoryLimit { get; set; } - - /// - /// Gets or sets DEPRECATED. The config this deployment is rolling back - /// to. Will be cleared after rollback is done. - /// - [JsonProperty(PropertyName = "rollbackTo")] - public Appsv1beta1RollbackConfig RollbackTo { get; set; } - - /// - /// Gets or sets label selector for pods. Existing ReplicaSets whose - /// pods are selected by this will be the ones affected by this - /// deployment. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets the deployment strategy to use to replace existing - /// pods with new ones. - /// - [JsonProperty(PropertyName = "strategy")] - public Appsv1beta1DeploymentStrategy Strategy { get; set; } - - /// - /// Gets or sets 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 (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/Appsv1beta1DeploymentStatus.cs b/src/generated/Models/Appsv1beta1DeploymentStatus.cs deleted file mode 100644 index 5537e9f6d..000000000 --- a/src/generated/Models/Appsv1beta1DeploymentStatus.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DeploymentStatus is the most recently observed status of the - /// Deployment. - /// - public partial class Appsv1beta1DeploymentStatus - { - /// - /// Initializes a new instance of the Appsv1beta1DeploymentStatus - /// class. - /// - public Appsv1beta1DeploymentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1DeploymentStatus - /// 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 Appsv1beta1DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList conditions = default(IList), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?)) - { - 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(); - - /// - /// Gets or sets total number of available pods (ready for at least - /// minReadySeconds) targeted by this deployment. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets represents the latest available observations of a - /// deployment's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets the generation observed by the deployment controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets total number of ready pods targeted by this - /// deployment. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets total number of non-terminated pods targeted by this - /// deployment (their labels match the selector). - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets total number of non-terminated pods targeted by this - /// deployment that have the desired template spec. - /// - [JsonProperty(PropertyName = "updatedReplicas")] - public int? UpdatedReplicas { get; set; } - - } -} diff --git a/src/generated/Models/Appsv1beta1DeploymentStrategy.cs b/src/generated/Models/Appsv1beta1DeploymentStrategy.cs deleted file mode 100644 index ccaa0875a..000000000 --- a/src/generated/Models/Appsv1beta1DeploymentStrategy.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentStrategy describes how to replace existing pods with new - /// ones. - /// - public partial class Appsv1beta1DeploymentStrategy - { - /// - /// Initializes a new instance of the Appsv1beta1DeploymentStrategy - /// class. - /// - public Appsv1beta1DeploymentStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1DeploymentStrategy - /// class. - /// - /// Rolling update config params. Present - /// only if DeploymentStrategyType = RollingUpdate. - /// Type of deployment. Can be "Recreate" or - /// "RollingUpdate". Default is RollingUpdate. - public Appsv1beta1DeploymentStrategy(Appsv1beta1RollingUpdateDeployment rollingUpdate = default(Appsv1beta1RollingUpdateDeployment), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rolling update config params. Present only if - /// DeploymentStrategyType = RollingUpdate. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public Appsv1beta1RollingUpdateDeployment RollingUpdate { get; set; } - - /// - /// Gets or sets type of deployment. Can be "Recreate" or - /// "RollingUpdate". Default is RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/Appsv1beta1RollbackConfig.cs b/src/generated/Models/Appsv1beta1RollbackConfig.cs deleted file mode 100644 index 2ee1508ce..000000000 --- a/src/generated/Models/Appsv1beta1RollbackConfig.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED. - /// - public partial class Appsv1beta1RollbackConfig - { - /// - /// Initializes a new instance of the Appsv1beta1RollbackConfig class. - /// - public Appsv1beta1RollbackConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1RollbackConfig class. - /// - /// The revision to rollback to. If set to 0, - /// rollback to the last revision. - public Appsv1beta1RollbackConfig(long? revision = default(long?)) - { - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the revision to rollback to. If set to 0, rollback to - /// the last revision. - /// - [JsonProperty(PropertyName = "revision")] - public long? Revision { get; set; } - - } -} diff --git a/src/generated/Models/Appsv1beta1RollingUpdateDeployment.cs b/src/generated/Models/Appsv1beta1RollingUpdateDeployment.cs deleted file mode 100644 index f27defea9..000000000 --- a/src/generated/Models/Appsv1beta1RollingUpdateDeployment.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Spec to control the desired behavior of rolling update. - /// - public partial class Appsv1beta1RollingUpdateDeployment - { - /// - /// Initializes a new instance of the - /// Appsv1beta1RollingUpdateDeployment class. - /// - public Appsv1beta1RollingUpdateDeployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// Appsv1beta1RollingUpdateDeployment 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 RC 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 RC can be scaled up further, - /// ensuring that total number of pods running at any time during the - /// update is atmost 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 RC can be scaled down to 70% of desired pods immediately - /// when the rolling update starts. Once new pods are ready, old RC can - /// be scaled down further, followed by scaling up the new RC, ensuring - /// that the total number of pods available at all times during the - /// update is at least 70% of desired pods. - public Appsv1beta1RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString)) - { - MaxSurge = maxSurge; - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 RC 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 RC - /// can be scaled up further, ensuring that total number of pods - /// running at any time during the update is atmost 130% of desired - /// pods. - /// - [JsonProperty(PropertyName = "maxSurge")] - public IntstrIntOrString MaxSurge { get; set; } - - /// - /// Gets or sets 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 RC - /// can be scaled down to 70% of desired pods immediately when the - /// rolling update starts. Once new pods are ready, old RC can be - /// scaled down further, followed by scaling up the new RC, 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; } - - } -} diff --git a/src/generated/Models/Appsv1beta1Scale.cs b/src/generated/Models/Appsv1beta1Scale.cs deleted file mode 100644 index af289939a..000000000 --- a/src/generated/Models/Appsv1beta1Scale.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Scale represents a scaling request for a resource. - /// - public partial class Appsv1beta1Scale - { - /// - /// Initializes a new instance of the Appsv1beta1Scale class. - /// - public Appsv1beta1Scale() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1Scale 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/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/api-conventions.md#types-kinds - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - public Appsv1beta1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Appsv1beta1ScaleSpec spec = default(Appsv1beta1ScaleSpec), Appsv1beta1ScaleStatus status = default(Appsv1beta1ScaleStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public Appsv1beta1ScaleSpec Spec { get; set; } - - /// - /// Gets or sets current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - /// - [JsonProperty(PropertyName = "status")] - public Appsv1beta1ScaleStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/Appsv1beta1ScaleSpec.cs b/src/generated/Models/Appsv1beta1ScaleSpec.cs deleted file mode 100644 index e3351e7a0..000000000 --- a/src/generated/Models/Appsv1beta1ScaleSpec.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ScaleSpec describes the attributes of a scale subresource - /// - public partial class Appsv1beta1ScaleSpec - { - /// - /// Initializes a new instance of the Appsv1beta1ScaleSpec class. - /// - public Appsv1beta1ScaleSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1ScaleSpec class. - /// - /// desired number of instances for the scaled - /// object. - public Appsv1beta1ScaleSpec(int? replicas = default(int?)) - { - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets desired number of instances for the scaled object. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - } -} diff --git a/src/generated/Models/Appsv1beta1ScaleStatus.cs b/src/generated/Models/Appsv1beta1ScaleStatus.cs deleted file mode 100644 index b94ecaeac..000000000 --- a/src/generated/Models/Appsv1beta1ScaleStatus.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ScaleStatus represents the current status of a scale subresource. - /// - public partial class Appsv1beta1ScaleStatus - { - /// - /// Initializes a new instance of the Appsv1beta1ScaleStatus class. - /// - public Appsv1beta1ScaleStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Appsv1beta1ScaleStatus class. - /// - /// actual number of observed instances of the - /// scaled object. - /// label query over pods that should match the - /// replicas count. More info: - /// http://kubernetes.io/docs/user-guide/labels#label-selectors - /// label selector for pods that should - /// match the replicas count. This is a serializated version of both - /// map-based and more expressive set-based selectors. This is done to - /// avoid introspection in the clients. The string will be in the same - /// format as the query-param syntax. If the target type only supports - /// map-based selectors, both this field and map-based selector field - /// are populated. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - public Appsv1beta1ScaleStatus(int replicas, IDictionary selector = default(IDictionary), string targetSelector = default(string)) - { - Replicas = replicas; - Selector = selector; - TargetSelector = targetSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets actual number of observed instances of the scaled - /// object. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Gets or sets label query over pods that should match the replicas - /// count. More info: - /// http://kubernetes.io/docs/user-guide/labels#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public IDictionary Selector { get; set; } - - /// - /// Gets or sets label selector for pods that should match the replicas - /// count. This is a serializated version of both map-based and more - /// expressive set-based selectors. This is done to avoid introspection - /// in the clients. The string will be in the same format as the - /// query-param syntax. If the target type only supports map-based - /// selectors, both this field and map-based selector field are - /// populated. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "targetSelector")] - public string TargetSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1Deployment.cs b/src/generated/Models/Extensionsv1beta1Deployment.cs deleted file mode 100644 index 0e0cc1c3a..000000000 --- a/src/generated/Models/Extensionsv1beta1Deployment.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED - This group version of Deployment is deprecated by - /// apps/v1beta2/Deployment. See the release notes for more information. - /// Deployment enables declarative updates for Pods and ReplicaSets. - /// - public partial class Extensionsv1beta1Deployment - { - /// - /// Initializes a new instance of the Extensionsv1beta1Deployment - /// class. - /// - public Extensionsv1beta1Deployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1Deployment - /// 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/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/api-conventions.md#types-kinds - /// Standard object metadata. - /// Specification of the desired behavior of the - /// Deployment. - /// Most recently observed status of the - /// Deployment. - public Extensionsv1beta1Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Extensionsv1beta1DeploymentSpec spec = default(Extensionsv1beta1DeploymentSpec), Extensionsv1beta1DeploymentStatus status = default(Extensionsv1beta1DeploymentStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the - /// Deployment. - /// - [JsonProperty(PropertyName = "spec")] - public Extensionsv1beta1DeploymentSpec Spec { get; set; } - - /// - /// Gets or sets most recently observed status of the Deployment. - /// - [JsonProperty(PropertyName = "status")] - public Extensionsv1beta1DeploymentStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1DeploymentCondition.cs b/src/generated/Models/Extensionsv1beta1DeploymentCondition.cs deleted file mode 100644 index 535c09c03..000000000 --- a/src/generated/Models/Extensionsv1beta1DeploymentCondition.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentCondition describes the state of a deployment at a certain - /// point. - /// - public partial class Extensionsv1beta1DeploymentCondition - { - /// - /// Initializes a new instance of the - /// Extensionsv1beta1DeploymentCondition class. - /// - public Extensionsv1beta1DeploymentCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// Extensionsv1beta1DeploymentCondition 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 Extensionsv1beta1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets the last time this condition was updated. - /// - [JsonProperty(PropertyName = "lastUpdateTime")] - public System.DateTime? LastUpdateTime { get; set; } - - /// - /// Gets or sets a human readable message indicating details about the - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of deployment condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1DeploymentList.cs b/src/generated/Models/Extensionsv1beta1DeploymentList.cs deleted file mode 100644 index 0b0addc68..000000000 --- a/src/generated/Models/Extensionsv1beta1DeploymentList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DeploymentList is a list of Deployments. - /// - public partial class Extensionsv1beta1DeploymentList - { - /// - /// Initializes a new instance of the Extensionsv1beta1DeploymentList - /// class. - /// - public Extensionsv1beta1DeploymentList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1DeploymentList - /// 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/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/api-conventions.md#types-kinds - /// Standard list metadata. - public Extensionsv1beta1DeploymentList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of Deployments. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1DeploymentRollback.cs b/src/generated/Models/Extensionsv1beta1DeploymentRollback.cs deleted file mode 100644 index 2270432c8..000000000 --- a/src/generated/Models/Extensionsv1beta1DeploymentRollback.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DEPRECATED. DeploymentRollback stores the information required to - /// rollback a deployment. - /// - public partial class Extensionsv1beta1DeploymentRollback - { - /// - /// Initializes a new instance of the - /// Extensionsv1beta1DeploymentRollback class. - /// - public Extensionsv1beta1DeploymentRollback() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// Extensionsv1beta1DeploymentRollback class. - /// - /// Required: This must match the Name of a - /// deployment. - /// The config of this deployment - /// rollback. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// The annotations to be updated to a - /// deployment - public Extensionsv1beta1DeploymentRollback(string name, Extensionsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary updatedAnnotations = default(IDictionary)) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - RollbackTo = rollbackTo; - UpdatedAnnotations = updatedAnnotations; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets required: This must match the Name of a deployment. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the config of this deployment rollback. - /// - [JsonProperty(PropertyName = "rollbackTo")] - public Extensionsv1beta1RollbackConfig RollbackTo { get; set; } - - /// - /// Gets or sets the annotations to be updated to a deployment - /// - [JsonProperty(PropertyName = "updatedAnnotations")] - public IDictionary UpdatedAnnotations { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (RollbackTo == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "RollbackTo"); - } - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1DeploymentSpec.cs b/src/generated/Models/Extensionsv1beta1DeploymentSpec.cs deleted file mode 100644 index 78ee09d39..000000000 --- a/src/generated/Models/Extensionsv1beta1DeploymentSpec.cs +++ /dev/null @@ -1,167 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentSpec is the specification of the desired behavior of the - /// Deployment. - /// - public partial class Extensionsv1beta1DeploymentSpec - { - /// - /// Initializes a new instance of the Extensionsv1beta1DeploymentSpec - /// class. - /// - public Extensionsv1beta1DeploymentSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1DeploymentSpec - /// class. - /// - /// 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 and - /// will not be processed by the deployment controller. - /// 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. This is - /// not set by default. - /// 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. - /// DEPRECATED. The config this deployment is - /// rolling back to. Will be cleared after rollback is done. - /// Label selector for pods. Existing - /// ReplicaSets whose pods are selected by this will be the ones - /// affected by this deployment. - /// The deployment strategy to use to replace - /// existing pods with new ones. - public Extensionsv1beta1DeploymentSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), Extensionsv1beta1RollbackConfig rollbackTo = default(Extensionsv1beta1RollbackConfig), V1LabelSelector selector = default(V1LabelSelector), Extensionsv1beta1DeploymentStrategy strategy = default(Extensionsv1beta1DeploymentStrategy)) - { - MinReadySeconds = minReadySeconds; - Paused = paused; - ProgressDeadlineSeconds = progressDeadlineSeconds; - Replicas = replicas; - RevisionHistoryLimit = revisionHistoryLimit; - RollbackTo = rollbackTo; - Selector = selector; - Strategy = strategy; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets indicates that the deployment is paused and will not - /// be processed by the deployment controller. - /// - [JsonProperty(PropertyName = "paused")] - public bool? Paused { get; set; } - - /// - /// Gets or sets 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. This is not set by default. - /// - [JsonProperty(PropertyName = "progressDeadlineSeconds")] - public int? ProgressDeadlineSeconds { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the number of old ReplicaSets to retain to allow - /// rollback. This is a pointer to distinguish between explicit zero - /// and not specified. - /// - [JsonProperty(PropertyName = "revisionHistoryLimit")] - public int? RevisionHistoryLimit { get; set; } - - /// - /// Gets or sets DEPRECATED. The config this deployment is rolling back - /// to. Will be cleared after rollback is done. - /// - [JsonProperty(PropertyName = "rollbackTo")] - public Extensionsv1beta1RollbackConfig RollbackTo { get; set; } - - /// - /// Gets or sets label selector for pods. Existing ReplicaSets whose - /// pods are selected by this will be the ones affected by this - /// deployment. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets the deployment strategy to use to replace existing - /// pods with new ones. - /// - [JsonProperty(PropertyName = "strategy")] - public Extensionsv1beta1DeploymentStrategy Strategy { get; set; } - - /// - /// Gets or sets 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 (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1DeploymentStatus.cs b/src/generated/Models/Extensionsv1beta1DeploymentStatus.cs deleted file mode 100644 index 2501c9f5e..000000000 --- a/src/generated/Models/Extensionsv1beta1DeploymentStatus.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DeploymentStatus is the most recently observed status of the - /// Deployment. - /// - public partial class Extensionsv1beta1DeploymentStatus - { - /// - /// Initializes a new instance of the Extensionsv1beta1DeploymentStatus - /// class. - /// - public Extensionsv1beta1DeploymentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1DeploymentStatus - /// 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 Extensionsv1beta1DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList conditions = default(IList), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?)) - { - 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(); - - /// - /// Gets or sets total number of available pods (ready for at least - /// minReadySeconds) targeted by this deployment. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets represents the latest available observations of a - /// deployment's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets the generation observed by the deployment controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets total number of ready pods targeted by this - /// deployment. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets total number of non-terminated pods targeted by this - /// deployment (their labels match the selector). - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets total number of non-terminated pods targeted by this - /// deployment that have the desired template spec. - /// - [JsonProperty(PropertyName = "updatedReplicas")] - public int? UpdatedReplicas { get; set; } - - } -} diff --git a/src/generated/Models/Extensionsv1beta1DeploymentStrategy.cs b/src/generated/Models/Extensionsv1beta1DeploymentStrategy.cs deleted file mode 100644 index 16e06f261..000000000 --- a/src/generated/Models/Extensionsv1beta1DeploymentStrategy.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentStrategy describes how to replace existing pods with new - /// ones. - /// - public partial class Extensionsv1beta1DeploymentStrategy - { - /// - /// Initializes a new instance of the - /// Extensionsv1beta1DeploymentStrategy class. - /// - public Extensionsv1beta1DeploymentStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// Extensionsv1beta1DeploymentStrategy class. - /// - /// Rolling update config params. Present - /// only if DeploymentStrategyType = RollingUpdate. - /// Type of deployment. Can be "Recreate" or - /// "RollingUpdate". Default is RollingUpdate. - public Extensionsv1beta1DeploymentStrategy(Extensionsv1beta1RollingUpdateDeployment rollingUpdate = default(Extensionsv1beta1RollingUpdateDeployment), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rolling update config params. Present only if - /// DeploymentStrategyType = RollingUpdate. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public Extensionsv1beta1RollingUpdateDeployment RollingUpdate { get; set; } - - /// - /// Gets or sets type of deployment. Can be "Recreate" or - /// "RollingUpdate". Default is RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/Extensionsv1beta1RollbackConfig.cs b/src/generated/Models/Extensionsv1beta1RollbackConfig.cs deleted file mode 100644 index 5a9dc18ee..000000000 --- a/src/generated/Models/Extensionsv1beta1RollbackConfig.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED. - /// - public partial class Extensionsv1beta1RollbackConfig - { - /// - /// Initializes a new instance of the Extensionsv1beta1RollbackConfig - /// class. - /// - public Extensionsv1beta1RollbackConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1RollbackConfig - /// class. - /// - /// The revision to rollback to. If set to 0, - /// rollback to the last revision. - public Extensionsv1beta1RollbackConfig(long? revision = default(long?)) - { - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the revision to rollback to. If set to 0, rollback to - /// the last revision. - /// - [JsonProperty(PropertyName = "revision")] - public long? Revision { get; set; } - - } -} diff --git a/src/generated/Models/Extensionsv1beta1RollingUpdateDeployment.cs b/src/generated/Models/Extensionsv1beta1RollingUpdateDeployment.cs deleted file mode 100644 index 176d475a9..000000000 --- a/src/generated/Models/Extensionsv1beta1RollingUpdateDeployment.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Spec to control the desired behavior of rolling update. - /// - public partial class Extensionsv1beta1RollingUpdateDeployment - { - /// - /// Initializes a new instance of the - /// Extensionsv1beta1RollingUpdateDeployment class. - /// - public Extensionsv1beta1RollingUpdateDeployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// Extensionsv1beta1RollingUpdateDeployment 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. By default, a value of 1 - /// is used. Example: when this is set to 30%, the new RC 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 RC can be scaled up further, - /// ensuring that total number of pods running at any time during the - /// update is atmost 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. By default, a fixed value of 1 is used. Example: - /// when this is set to 30%, the old RC can be scaled down to 70% of - /// desired pods immediately when the rolling update starts. Once new - /// pods are ready, old RC can be scaled down further, followed by - /// scaling up the new RC, ensuring that the total number of pods - /// available at all times during the update is at least 70% of desired - /// pods. - public Extensionsv1beta1RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString)) - { - MaxSurge = maxSurge; - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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. By default, a value of 1 is used. Example: when - /// this is set to 30%, the new RC 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 RC can be scaled up further, ensuring that total - /// number of pods running at any time during the update is atmost 130% - /// of desired pods. - /// - [JsonProperty(PropertyName = "maxSurge")] - public IntstrIntOrString MaxSurge { get; set; } - - /// - /// Gets or sets 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. By default, a fixed value of 1 is used. Example: when this is - /// set to 30%, the old RC can be scaled down to 70% of desired pods - /// immediately when the rolling update starts. Once new pods are - /// ready, old RC can be scaled down further, followed by scaling up - /// the new RC, 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; } - - } -} diff --git a/src/generated/Models/Extensionsv1beta1Scale.cs b/src/generated/Models/Extensionsv1beta1Scale.cs deleted file mode 100644 index 8ab0e8491..000000000 --- a/src/generated/Models/Extensionsv1beta1Scale.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// represents a scaling request for a resource. - /// - public partial class Extensionsv1beta1Scale - { - /// - /// Initializes a new instance of the Extensionsv1beta1Scale class. - /// - public Extensionsv1beta1Scale() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1Scale 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/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/api-conventions.md#types-kinds - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - public Extensionsv1beta1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Extensionsv1beta1ScaleSpec spec = default(Extensionsv1beta1ScaleSpec), Extensionsv1beta1ScaleStatus status = default(Extensionsv1beta1ScaleStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public Extensionsv1beta1ScaleSpec Spec { get; set; } - - /// - /// Gets or sets current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - /// - [JsonProperty(PropertyName = "status")] - public Extensionsv1beta1ScaleStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/Extensionsv1beta1ScaleSpec.cs b/src/generated/Models/Extensionsv1beta1ScaleSpec.cs deleted file mode 100644 index 4f13527be..000000000 --- a/src/generated/Models/Extensionsv1beta1ScaleSpec.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// describes the attributes of a scale subresource - /// - public partial class Extensionsv1beta1ScaleSpec - { - /// - /// Initializes a new instance of the Extensionsv1beta1ScaleSpec class. - /// - public Extensionsv1beta1ScaleSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1ScaleSpec class. - /// - /// desired number of instances for the scaled - /// object. - public Extensionsv1beta1ScaleSpec(int? replicas = default(int?)) - { - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets desired number of instances for the scaled object. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - } -} diff --git a/src/generated/Models/Extensionsv1beta1ScaleStatus.cs b/src/generated/Models/Extensionsv1beta1ScaleStatus.cs deleted file mode 100644 index af03002cb..000000000 --- a/src/generated/Models/Extensionsv1beta1ScaleStatus.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// represents the current status of a scale subresource. - /// - public partial class Extensionsv1beta1ScaleStatus - { - /// - /// Initializes a new instance of the Extensionsv1beta1ScaleStatus - /// class. - /// - public Extensionsv1beta1ScaleStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Extensionsv1beta1ScaleStatus - /// class. - /// - /// actual number of observed instances of the - /// scaled object. - /// label query over pods that should match the - /// replicas count. More info: - /// http://kubernetes.io/docs/user-guide/labels#label-selectors - /// label selector for pods that should - /// match the replicas count. This is a serializated version of both - /// map-based and more expressive set-based selectors. This is done to - /// avoid introspection in the clients. The string will be in the same - /// format as the query-param syntax. If the target type only supports - /// map-based selectors, both this field and map-based selector field - /// are populated. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - public Extensionsv1beta1ScaleStatus(int replicas, IDictionary selector = default(IDictionary), string targetSelector = default(string)) - { - Replicas = replicas; - Selector = selector; - TargetSelector = targetSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets actual number of observed instances of the scaled - /// object. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Gets or sets label query over pods that should match the replicas - /// count. More info: - /// http://kubernetes.io/docs/user-guide/labels#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public IDictionary Selector { get; set; } - - /// - /// Gets or sets label selector for pods that should match the replicas - /// count. This is a serializated version of both map-based and more - /// expressive set-based selectors. This is done to avoid introspection - /// in the clients. The string will be in the same format as the - /// query-param syntax. If the target type only supports map-based - /// selectors, both this field and map-based selector field are - /// populated. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "targetSelector")] - public string TargetSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/generated/Models/IntstrIntOrString.cs b/src/generated/Models/IntstrIntOrString.cs deleted file mode 100644 index 81c021e38..000000000 --- a/src/generated/Models/IntstrIntOrString.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - 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 = default(string)) - { - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - } -} diff --git a/src/generated/Models/ResourceQuantity.cs b/src/generated/Models/ResourceQuantity.cs deleted file mode 100644 index a21cdfd39..000000000 --- a/src/generated/Models/ResourceQuantity.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - 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 = default(string)) - { - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - private string Value { get; set; } - - } -} diff --git a/src/generated/Models/RuntimeRawExtension.cs b/src/generated/Models/RuntimeRawExtension.cs deleted file mode 100644 index e8f98580c..000000000 --- a/src/generated/Models/RuntimeRawExtension.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// RawExtension is used to hold extensions in external versions. - /// - /// To 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. - /// - /// // Internal package: type MyAPIObject struct { - /// runtime.TypeMeta `json:",inline"` - /// MyPlugin runtime.Object `json:"myPlugin"` - /// } type PluginA struct { - /// AOption string `json:"aOption"` - /// } - /// - /// // External package: type MyAPIObject struct { - /// runtime.TypeMeta `json:",inline"` - /// MyPlugin runtime.RawExtension `json:"myPlugin"` - /// } type PluginA struct { - /// AOption string `json:"aOption"` - /// } - /// - /// // On the wire, the JSON will look something like this: { - /// "kind":"MyAPIObject", - /// "apiVersion":"v1", - /// "myPlugin": { - /// "kind":"PluginA", - /// "aOption":"foo", - /// }, - /// } - /// - /// So 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.) - /// - public partial class RuntimeRawExtension - { - /// - /// Initializes a new instance of the RuntimeRawExtension class. - /// - public RuntimeRawExtension() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RuntimeRawExtension class. - /// - /// Raw is the underlying serialization of this - /// object. - public RuntimeRawExtension(byte[] raw) - { - Raw = raw; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets raw is the underlying serialization of this object. - /// - [JsonProperty(PropertyName = "Raw")] - public byte[] Raw { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Raw == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Raw"); - } - } - } -} diff --git a/src/generated/Models/V1APIGroup.cs b/src/generated/Models/V1APIGroup.cs deleted file mode 100644 index f2276004c..000000000 --- a/src/generated/Models/V1APIGroup.cs +++ /dev/null @@ -1,175 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// 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 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/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/api-conventions.md#types-kinds - /// preferredVersion is the version - /// preferred by the API server, which probably is the storage - /// version. - public V1APIGroup(string name, IList serverAddressByClientCIDRs, IList versions, string apiVersion = default(string), string kind = default(string), V1GroupVersionForDiscovery preferredVersion = default(V1GroupVersionForDiscovery)) - { - 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(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets name is the name of the group. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets preferredVersion is the version preferred by the API - /// server, which probably is the storage version. - /// - [JsonProperty(PropertyName = "preferredVersion")] - public V1GroupVersionForDiscovery PreferredVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (ServerAddressByClientCIDRs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerAddressByClientCIDRs"); - } - if (Versions == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Versions"); - } - if (PreferredVersion != null) - { - PreferredVersion.Validate(); - } - if (ServerAddressByClientCIDRs != null) - { - foreach (var element in ServerAddressByClientCIDRs) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Versions != null) - { - foreach (var element1 in Versions) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1APIGroupList.cs b/src/generated/Models/V1APIGroupList.cs deleted file mode 100644 index 26d1e4aa7..000000000 --- a/src/generated/Models/V1APIGroupList.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - public V1APIGroupList(IList groups, string apiVersion = default(string), string kind = default(string)) - { - ApiVersion = apiVersion; - Groups = groups; - Kind = kind; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets groups is a list of APIGroup. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Groups"); - } - if (Groups != null) - { - foreach (var element in Groups) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1APIResource.cs b/src/generated/Models/V1APIResource.cs deleted file mode 100644 index ced6d29c9..000000000 --- a/src/generated/Models/V1APIResource.cs +++ /dev/null @@ -1,172 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// 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 = default(IList), string group = default(string), IList shortNames = default(IList), string version = default(string)) - { - Categories = categories; - Group = group; - Kind = kind; - Name = name; - Namespaced = namespaced; - ShortNames = shortNames; - SingularName = singularName; - Verbs = verbs; - Version = version; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets categories is a list of the grouped resources this - /// resource belongs to (e.g. 'all') - /// - [JsonProperty(PropertyName = "categories")] - public IList Categories { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets name is the plural name of the resource. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets namespaced indicates if a resource is namespaced or - /// not. - /// - [JsonProperty(PropertyName = "namespaced")] - public bool Namespaced { get; set; } - - /// - /// Gets or sets shortNames is a list of suggested short names of the - /// resource. - /// - [JsonProperty(PropertyName = "shortNames")] - public IList ShortNames { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (SingularName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SingularName"); - } - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1APIResourceList.cs b/src/generated/Models/V1APIResourceList.cs deleted file mode 100644 index 40c7cca22..000000000 --- a/src/generated/Models/V1APIResourceList.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - public V1APIResourceList(string groupVersion, IList resources, string apiVersion = default(string), string kind = default(string)) - { - ApiVersion = apiVersion; - GroupVersion = groupVersion; - Kind = kind; - Resources = resources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets groupVersion is the group and version this - /// APIResourceList is for. - /// - [JsonProperty(PropertyName = "groupVersion")] - public string GroupVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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 (GroupVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "GroupVersion"); - } - if (Resources == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Resources"); - } - if (Resources != null) - { - foreach (var element in Resources) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1APIVersions.cs b/src/generated/Models/V1APIVersions.cs deleted file mode 100644 index b73a8b5bc..000000000 --- a/src/generated/Models/V1APIVersions.cs +++ /dev/null @@ -1,138 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - public V1APIVersions(IList serverAddressByClientCIDRs, IList versions, string apiVersion = default(string), string kind = default(string)) - { - ApiVersion = apiVersion; - Kind = kind; - ServerAddressByClientCIDRs = serverAddressByClientCIDRs; - Versions = versions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerAddressByClientCIDRs"); - } - if (Versions == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Versions"); - } - if (ServerAddressByClientCIDRs != null) - { - foreach (var element in ServerAddressByClientCIDRs) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1AWSElasticBlockStoreVolumeSource.cs b/src/generated/Models/V1AWSElasticBlockStoreVolumeSource.cs deleted file mode 100644 index fee82f9b2..000000000 --- a/src/generated/Models/V1AWSElasticBlockStoreVolumeSource.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), int? partition = default(int?), bool? readOnlyProperty = default(bool?)) - { - FsType = fsType; - Partition = partition; - ReadOnlyProperty = readOnlyProperty; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (VolumeID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VolumeID"); - } - } - } -} diff --git a/src/generated/Models/V1Affinity.cs b/src/generated/Models/V1Affinity.cs deleted file mode 100644 index 5a50e0f8a..000000000 --- a/src/generated/Models/V1Affinity.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(V1NodeAffinity), V1PodAffinity podAffinity = default(V1PodAffinity), V1PodAntiAffinity podAntiAffinity = default(V1PodAntiAffinity)) - { - NodeAffinity = nodeAffinity; - PodAffinity = podAffinity; - PodAntiAffinity = podAntiAffinity; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets describes node affinity scheduling rules for the pod. - /// - [JsonProperty(PropertyName = "nodeAffinity")] - public V1NodeAffinity NodeAffinity { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (NodeAffinity != null) - { - NodeAffinity.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1AttachedVolume.cs b/src/generated/Models/V1AttachedVolume.cs deleted file mode 100644 index 6cfc11eb6..000000000 --- a/src/generated/Models/V1AttachedVolume.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets devicePath represents the device path where the volume - /// should be available - /// - [JsonProperty(PropertyName = "devicePath")] - public string DevicePath { get; set; } - - /// - /// Gets or sets name of the attached volume - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (DevicePath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DevicePath"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1AzureDiskVolumeSource.cs b/src/generated/Models/V1AzureDiskVolumeSource.cs deleted file mode 100644 index 84d2e0122..000000000 --- a/src/generated/Models/V1AzureDiskVolumeSource.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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: mulitple 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 = default(string), string fsType = default(string), string kind = default(string), bool? readOnlyProperty = default(bool?)) - { - 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(); - - /// - /// Gets or sets host Caching mode: None, Read Only, Read Write. - /// - [JsonProperty(PropertyName = "cachingMode")] - public string CachingMode { get; set; } - - /// - /// Gets or sets the Name of the data disk in the blob storage - /// - [JsonProperty(PropertyName = "diskName")] - public string DiskName { get; set; } - - /// - /// Gets or sets the URI the data disk in the blob storage - /// - [JsonProperty(PropertyName = "diskURI")] - public string DiskURI { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets expected values Shared: mulitple 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; } - - /// - /// Gets or sets 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() - { - if (DiskName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DiskName"); - } - if (DiskURI == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DiskURI"); - } - } - } -} diff --git a/src/generated/Models/V1AzureFilePersistentVolumeSource.cs b/src/generated/Models/V1AzureFilePersistentVolumeSource.cs deleted file mode 100644 index 7539ec6c9..000000000 --- a/src/generated/Models/V1AzureFilePersistentVolumeSource.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(bool?), string secretNamespace = default(string)) - { - ReadOnlyProperty = readOnlyProperty; - SecretName = secretName; - SecretNamespace = secretNamespace; - ShareName = shareName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets the name of secret that contains Azure Storage Account - /// Name and Key - /// - [JsonProperty(PropertyName = "secretName")] - public string SecretName { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets share Name - /// - [JsonProperty(PropertyName = "shareName")] - public string ShareName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (SecretName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SecretName"); - } - if (ShareName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ShareName"); - } - } - } -} diff --git a/src/generated/Models/V1AzureFileVolumeSource.cs b/src/generated/Models/V1AzureFileVolumeSource.cs deleted file mode 100644 index ca30baa43..000000000 --- a/src/generated/Models/V1AzureFileVolumeSource.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(bool?)) - { - ReadOnlyProperty = readOnlyProperty; - SecretName = secretName; - ShareName = shareName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets the name of secret that contains Azure Storage Account - /// Name and Key - /// - [JsonProperty(PropertyName = "secretName")] - public string SecretName { get; set; } - - /// - /// Gets or sets share Name - /// - [JsonProperty(PropertyName = "shareName")] - public string ShareName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (SecretName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SecretName"); - } - if (ShareName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ShareName"); - } - } - } -} diff --git a/src/generated/Models/V1Binding.cs b/src/generated/Models/V1Binding.cs deleted file mode 100644 index 2773d29a1..000000000 --- a/src/generated/Models/V1Binding.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1Binding(V1ObjectReference target, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1Capabilities.cs b/src/generated/Models/V1Capabilities.cs deleted file mode 100644 index d3e02f409..000000000 --- a/src/generated/Models/V1Capabilities.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IList drop = default(IList)) - { - Add = add; - Drop = drop; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets added capabilities - /// - [JsonProperty(PropertyName = "add")] - public IList Add { get; set; } - - /// - /// Gets or sets removed capabilities - /// - [JsonProperty(PropertyName = "drop")] - public IList Drop { get; set; } - - } -} diff --git a/src/generated/Models/V1CephFSPersistentVolumeSource.cs b/src/generated/Models/V1CephFSPersistentVolumeSource.cs deleted file mode 100644 index 6fa3d9a37..000000000 --- a/src/generated/Models/V1CephFSPersistentVolumeSource.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// Optional: SecretRef is reference to the - /// authentication secret for User, default is empty. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// Optional: User is the rados user name, default - /// is admin More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - public V1CephFSPersistentVolumeSource(IList monitors, string path = default(string), bool? readOnlyProperty = default(bool?), string secretFile = default(string), V1SecretReference secretRef = default(V1SecretReference), string user = default(string)) - { - 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(); - - /// - /// Gets or sets required: Monitors is a collection of Ceph monitors - /// More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// Gets or sets optional: Used as the mounted root, rather than the - /// full Ceph tree, default is / - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets optional: Defaults to false (read/write). ReadOnly - /// here will force the ReadOnly setting in VolumeMounts. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets optional: SecretFile is the path to key ring for User, - /// default is /etc/ceph/user.secret More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "secretFile")] - public string SecretFile { get; set; } - - /// - /// Gets or sets optional: SecretRef is reference to the authentication - /// secret for User, default is empty. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretReference SecretRef { get; set; } - - /// - /// Gets or sets optional: User is the rados user name, default is - /// admin More info: - /// https://releases.k8s.io/HEAD/examples/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() - { - if (Monitors == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Monitors"); - } - } - } -} diff --git a/src/generated/Models/V1CephFSVolumeSource.cs b/src/generated/Models/V1CephFSVolumeSource.cs deleted file mode 100644 index 414b41ce7..000000000 --- a/src/generated/Models/V1CephFSVolumeSource.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// Optional: SecretRef is reference to the - /// authentication secret for User, default is empty. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// Optional: User is the rados user name, default - /// is admin More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - public V1CephFSVolumeSource(IList monitors, string path = default(string), bool? readOnlyProperty = default(bool?), string secretFile = default(string), V1LocalObjectReference secretRef = default(V1LocalObjectReference), string user = default(string)) - { - 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(); - - /// - /// Gets or sets required: Monitors is a collection of Ceph monitors - /// More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// Gets or sets optional: Used as the mounted root, rather than the - /// full Ceph tree, default is / - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets optional: Defaults to false (read/write). ReadOnly - /// here will force the ReadOnly setting in VolumeMounts. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets optional: SecretFile is the path to key ring for User, - /// default is /etc/ceph/user.secret More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "secretFile")] - public string SecretFile { get; set; } - - /// - /// Gets or sets optional: SecretRef is reference to the authentication - /// secret for User, default is empty. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// Gets or sets optional: User is the rados user name, default is - /// admin More info: - /// https://releases.k8s.io/HEAD/examples/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() - { - if (Monitors == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Monitors"); - } - } - } -} diff --git a/src/generated/Models/V1CinderVolumeSource.cs b/src/generated/Models/V1CinderVolumeSource.cs deleted file mode 100644 index 7eda9423f..000000000 --- a/src/generated/Models/V1CinderVolumeSource.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// Optional: Defaults to false - /// (read/write). ReadOnly here will force the ReadOnly setting in - /// VolumeMounts. More info: - /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - public V1CinderVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?)) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "fsType")] - public string FsType { get; set; } - - /// - /// Gets or sets optional: Defaults to false (read/write). ReadOnly - /// here will force the ReadOnly setting in VolumeMounts. More info: - /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets volume id used to identify the volume in cinder More - /// info: - /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "volumeID")] - public string VolumeID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (VolumeID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VolumeID"); - } - } - } -} diff --git a/src/generated/Models/V1ClientIPConfig.cs b/src/generated/Models/V1ClientIPConfig.cs deleted file mode 100644 index c574e86c4..000000000 --- a/src/generated/Models/V1ClientIPConfig.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(int?)) - { - TimeoutSeconds = timeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets timeoutSeconds specifies the seconds of ClientIP type - /// session sticky time. The value must be &gt;0 &amp;&amp; - /// &lt;=86400(for 1 day) if ServiceAffinity == "ClientIP". Default - /// value is 10800(for 3 hours). - /// - [JsonProperty(PropertyName = "timeoutSeconds")] - public int? TimeoutSeconds { get; set; } - - } -} diff --git a/src/generated/Models/V1ClusterRole.cs b/src/generated/Models/V1ClusterRole.cs deleted file mode 100644 index e04f669d2..000000000 --- a/src/generated/Models/V1ClusterRole.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// Rules holds all the PolicyRules for this - /// ClusterRole - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1ClusterRole(IList rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Rules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rules"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ClusterRoleBinding.cs b/src/generated/Models/V1ClusterRoleBinding.cs deleted file mode 100644 index 7ab031f30..000000000 --- a/src/generated/Models/V1ClusterRoleBinding.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// Subjects holds references to the objects the - /// role applies to. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1ClusterRoleBinding(V1RoleRef roleRef, IList subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Subjects == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subjects"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (RoleRef != null) - { - RoleRef.Validate(); - } - if (Subjects != null) - { - foreach (var element in Subjects) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ClusterRoleBindingList.cs b/src/generated/Models/V1ClusterRoleBindingList.cs deleted file mode 100644 index 1500f831e..000000000 --- a/src/generated/Models/V1ClusterRoleBindingList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1ClusterRoleBindingList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ClusterRoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ClusterRoleList.cs b/src/generated/Models/V1ClusterRoleList.cs deleted file mode 100644 index 9d202f2ff..000000000 --- a/src/generated/Models/V1ClusterRoleList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1ClusterRoleList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ClusterRoles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ComponentCondition.cs b/src/generated/Models/V1ComponentCondition.cs deleted file mode 100644 index 444044531..000000000 --- a/src/generated/Models/V1ComponentCondition.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), string message = default(string)) - { - Error = error; - Message = message; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets condition error code for a component. For example, a - /// health check error code. - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// Gets or sets message about the condition for a component. For - /// example, information about a health check. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets status of the condition for a component. Valid values - /// for "Healthy": "True", "False", or "Unknown". - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets 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() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1ComponentStatus.cs b/src/generated/Models/V1ComponentStatus.cs deleted file mode 100644 index bf110df2f..000000000 --- a/src/generated/Models/V1ComponentStatus.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ComponentStatus (and ComponentStatusList) holds the cluster validation - /// info. - /// - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1ComponentStatus(string apiVersion = default(string), IList conditions = default(IList), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Conditions = conditions; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of component conditions observed - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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 element in Conditions) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ComponentStatusList.cs b/src/generated/Models/V1ComponentStatusList.cs deleted file mode 100644 index 2157d936d..000000000 --- a/src/generated/Models/V1ComponentStatusList.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Status of all the conditions for the component as a list of - /// ComponentStatus objects. - /// - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1ComponentStatusList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of ComponentStatus objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ConfigMap.cs b/src/generated/Models/V1ConfigMap.cs deleted file mode 100644 index 63c8b2299..000000000 --- a/src/generated/Models/V1ConfigMap.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/api-conventions.md#resources - /// Data contains the configuration data. Each key - /// must consist of alphanumeric characters, '-', '_' or '.'. - /// Kind is a string value representing the REST - /// resource this object represents. Servers may infer this from the - /// endpoint the client submits requests to. Cannot be updated. In - /// CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1ConfigMap(string apiVersion = default(string), IDictionary data = default(IDictionary), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Data = data; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets data contains the configuration data. Each key must - /// consist of alphanumeric characters, '-', '_' or '.'. - /// - [JsonProperty(PropertyName = "data")] - public IDictionary Data { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ConfigMapEnvSource.cs b/src/generated/Models/V1ConfigMapEnvSource.cs deleted file mode 100644 index 0416eaad6..000000000 --- a/src/generated/Models/V1ConfigMapEnvSource.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), bool? optional = default(bool?)) - { - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the ConfigMap must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - } -} diff --git a/src/generated/Models/V1ConfigMapKeySelector.cs b/src/generated/Models/V1ConfigMapKeySelector.cs deleted file mode 100644 index 4cd90ccf7..000000000 --- a/src/generated/Models/V1ConfigMapKeySelector.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 it's key - /// must be defined - public V1ConfigMapKeySelector(string key, string name = default(string), bool? optional = default(bool?)) - { - Key = key; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the key to select. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the ConfigMap or it's key must be - /// defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Key == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Key"); - } - } - } -} diff --git a/src/generated/Models/V1ConfigMapList.cs b/src/generated/Models/V1ConfigMapList.cs deleted file mode 100644 index 6621d8a8f..000000000 --- a/src/generated/Models/V1ConfigMapList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1ConfigMapList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of ConfigMaps. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets more info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ConfigMapProjection.cs b/src/generated/Models/V1ConfigMapProjection.cs deleted file mode 100644 index 0dcc7da87..000000000 --- a/src/generated/Models/V1ConfigMapProjection.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 it's keys - /// must be defined - public V1ConfigMapProjection(IList items = default(IList), string name = default(string), bool? optional = default(bool?)) - { - Items = items; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the ConfigMap or it's keys must be - /// defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - } -} diff --git a/src/generated/Models/V1ConfigMapVolumeSource.cs b/src/generated/Models/V1ConfigMapVolumeSource.cs deleted file mode 100644 index 9771ccce5..000000000 --- a/src/generated/Models/V1ConfigMapVolumeSource.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 to use on created - /// files by default. Must be a value between 0 and 0777. Defaults to - /// 0644. Directories within the path are not affected by this setting. - /// This might be in conflict with other options that affect the file - /// mode, like fsGroup, and the result can be other mode bits - /// set. - /// 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 it's keys - /// must be defined - public V1ConfigMapVolumeSource(int? defaultMode = default(int?), IList items = default(IList), string name = default(string), bool? optional = default(bool?)) - { - DefaultMode = defaultMode; - Items = items; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets optional: mode bits to use on created files by - /// default. Must be a value between 0 and 0777. Defaults to 0644. - /// Directories within the path are not affected by this setting. This - /// might be in conflict with other options that affect the file mode, - /// like fsGroup, and the result can be other mode bits set. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the ConfigMap or it's keys must be - /// defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - } -} diff --git a/src/generated/Models/V1Container.cs b/src/generated/Models/V1Container.cs deleted file mode 100644 index 06fd21198..000000000 --- a/src/generated/Models/V1Container.cs +++ /dev/null @@ -1,414 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. The $(VAR_NAME) syntax can be escaped with a double - /// $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - /// regardless of whether the variable exists or not. Cannot be - /// updated. More info: - /// https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - /// Entrypoint array. Not executed within a - /// shell. The docker image's ENTRYPOINT is used if this is not - /// provided. Variable references $(VAR_NAME) are expanded using the - /// container's environment. If a variable cannot be resolved, the - /// reference in the input string will be unchanged. The $(VAR_NAME) - /// syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - /// references will never be expanded, regardless of whether the - /// variable exists or not. Cannot be updated. More info: - /// https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - /// 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/storage/persistent-volumes#resources - /// Security options the pod should run - /// with. More info: - /// https://kubernetes.io/docs/concepts/policy/security-context/ More - /// info: - /// https://git.k8s.io/community/contributors/design-proposals/security_context.md - /// 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. - /// 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 = default(IList), IList command = default(IList), IList env = default(IList), IList envFrom = default(IList), string image = default(string), string imagePullPolicy = default(string), V1Lifecycle lifecycle = default(V1Lifecycle), V1Probe livenessProbe = default(V1Probe), IList ports = default(IList), V1Probe readinessProbe = default(V1Probe), V1ResourceRequirements resources = default(V1ResourceRequirements), V1SecurityContext securityContext = default(V1SecurityContext), bool? stdin = default(bool?), bool? stdinOnce = default(bool?), string terminationMessagePath = default(string), string terminationMessagePolicy = default(string), bool? tty = default(bool?), IList volumeMounts = default(IList), string workingDir = default(string)) - { - 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; - Stdin = stdin; - StdinOnce = stdinOnce; - TerminationMessagePath = terminationMessagePath; - TerminationMessagePolicy = terminationMessagePolicy; - Tty = tty; - VolumeMounts = volumeMounts; - WorkingDir = workingDir; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets arguments to the entrypoint. The docker image's CMD is - /// used if this is not provided. Variable references $(VAR_NAME) are - /// expanded using the container's environment. If a variable cannot be - /// resolved, the reference in the input string will be unchanged. The - /// $(VAR_NAME) syntax can be escaped with a double $$, ie: - /// $$(VAR_NAME). Escaped references will never be expanded, regardless - /// of whether the variable exists or not. Cannot be updated. More - /// info: - /// https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - /// - [JsonProperty(PropertyName = "args")] - public IList Args { get; set; } - - /// - /// Gets or sets entrypoint array. Not executed within a shell. The - /// docker image's ENTRYPOINT is used if this is not provided. Variable - /// references $(VAR_NAME) are expanded using the container's - /// environment. If a variable cannot be resolved, the reference in the - /// input string will be unchanged. The $(VAR_NAME) syntax can be - /// escaped with a double $$, ie: $$(VAR_NAME). Escaped references will - /// never be expanded, regardless of whether the variable exists or - /// not. Cannot be updated. More info: - /// https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - /// - [JsonProperty(PropertyName = "command")] - public IList Command { get; set; } - - /// - /// Gets or sets list of environment variables to set in the container. - /// Cannot be updated. - /// - [JsonProperty(PropertyName = "env")] - public IList Env { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets actions that the management system should take in - /// response to container lifecycle events. Cannot be updated. - /// - [JsonProperty(PropertyName = "lifecycle")] - public V1Lifecycle Lifecycle { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets compute Resources required by this container. Cannot - /// be updated. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - /// - [JsonProperty(PropertyName = "resources")] - public V1ResourceRequirements Resources { get; set; } - - /// - /// Gets or sets security options the pod should run with. More info: - /// https://kubernetes.io/docs/concepts/policy/security-context/ More - /// info: - /// https://git.k8s.io/community/contributors/design-proposals/security_context.md - /// - [JsonProperty(PropertyName = "securityContext")] - public V1SecurityContext SecurityContext { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets pod volumes to mount into the container's filesystem. - /// Cannot be updated. - /// - [JsonProperty(PropertyName = "volumeMounts")] - public IList VolumeMounts { get; set; } - - /// - /// Gets or sets 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 (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (Env != null) - { - foreach (var element in Env) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Lifecycle != null) - { - Lifecycle.Validate(); - } - if (LivenessProbe != null) - { - LivenessProbe.Validate(); - } - if (Ports != null) - { - foreach (var element1 in Ports) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - if (ReadinessProbe != null) - { - ReadinessProbe.Validate(); - } - if (VolumeMounts != null) - { - foreach (var element2 in VolumeMounts) - { - if (element2 != null) - { - element2.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ContainerImage.cs b/src/generated/Models/V1ContainerImage.cs deleted file mode 100644 index 96238c604..000000000 --- a/src/generated/Models/V1ContainerImage.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// ["gcr.io/google_containers/hyperkube:v1.0.7", - /// "dockerhub.io/google_containers/hyperkube:v1.0.7"] - /// The size of the image in bytes. - public V1ContainerImage(IList names, long? sizeBytes = default(long?)) - { - Names = names; - SizeBytes = sizeBytes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets names by which this image is known. e.g. - /// ["gcr.io/google_containers/hyperkube:v1.0.7", - /// "dockerhub.io/google_containers/hyperkube:v1.0.7"] - /// - [JsonProperty(PropertyName = "names")] - public IList Names { get; set; } - - /// - /// Gets or sets 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() - { - if (Names == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Names"); - } - } - } -} diff --git a/src/generated/Models/V1ContainerPort.cs b/src/generated/Models/V1ContainerPort.cs deleted file mode 100644 index 82ba60f1e..000000000 --- a/src/generated/Models/V1ContainerPort.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 or TCP. - /// Defaults to "TCP". - public V1ContainerPort(int containerPort, string hostIP = default(string), int? hostPort = default(int?), string name = default(string), string protocol = default(string)) - { - ContainerPort = containerPort; - HostIP = hostIP; - HostPort = hostPort; - Name = name; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets number of port to expose on the pod's IP address. This - /// must be a valid port number, 0 &lt; x &lt; 65536. - /// - [JsonProperty(PropertyName = "containerPort")] - public int ContainerPort { get; set; } - - /// - /// Gets or sets what host IP to bind the external port to. - /// - [JsonProperty(PropertyName = "hostIP")] - public string HostIP { get; set; } - - /// - /// Gets or sets number of port to expose on the host. If specified, - /// this must be a valid port number, 0 &lt; x &lt; 65536. If - /// HostNetwork is specified, this must match ContainerPort. Most - /// containers do not need this. - /// - [JsonProperty(PropertyName = "hostPort")] - public int? HostPort { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets protocol for port. Must be UDP or TCP. Defaults to - /// "TCP". - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1ContainerState.cs b/src/generated/Models/V1ContainerState.cs deleted file mode 100644 index 674eb02db..000000000 --- a/src/generated/Models/V1ContainerState.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(V1ContainerStateRunning), V1ContainerStateTerminated terminated = default(V1ContainerStateTerminated), V1ContainerStateWaiting waiting = default(V1ContainerStateWaiting)) - { - Running = running; - Terminated = terminated; - Waiting = waiting; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets details about a running container - /// - [JsonProperty(PropertyName = "running")] - public V1ContainerStateRunning Running { get; set; } - - /// - /// Gets or sets details about a terminated container - /// - [JsonProperty(PropertyName = "terminated")] - public V1ContainerStateTerminated Terminated { get; set; } - - /// - /// Gets or sets details about a waiting container - /// - [JsonProperty(PropertyName = "waiting")] - public V1ContainerStateWaiting Waiting { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Terminated != null) - { - Terminated.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ContainerStateRunning.cs b/src/generated/Models/V1ContainerStateRunning.cs deleted file mode 100644 index eb8c3c195..000000000 --- a/src/generated/Models/V1ContainerStateRunning.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(System.DateTime?)) - { - StartedAt = startedAt; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets time at which the container was last (re-)started - /// - [JsonProperty(PropertyName = "startedAt")] - public System.DateTime? StartedAt { get; set; } - - } -} diff --git a/src/generated/Models/V1ContainerStateTerminated.cs b/src/generated/Models/V1ContainerStateTerminated.cs deleted file mode 100644 index b800e3566..000000000 --- a/src/generated/Models/V1ContainerStateTerminated.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), System.DateTime? finishedAt = default(System.DateTime?), string message = default(string), string reason = default(string), int? signal = default(int?), System.DateTime? startedAt = default(System.DateTime?)) - { - 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(); - - /// - /// Gets or sets container's ID in the format - /// 'docker://&lt;container_id&gt;' - /// - [JsonProperty(PropertyName = "containerID")] - public string ContainerID { get; set; } - - /// - /// Gets or sets exit status from the last termination of the container - /// - [JsonProperty(PropertyName = "exitCode")] - public int ExitCode { get; set; } - - /// - /// Gets or sets time at which the container last terminated - /// - [JsonProperty(PropertyName = "finishedAt")] - public System.DateTime? FinishedAt { get; set; } - - /// - /// Gets or sets message regarding the last termination of the - /// container - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets (brief) reason from the last termination of the - /// container - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets signal from the last termination of the container - /// - [JsonProperty(PropertyName = "signal")] - public int? Signal { get; set; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1ContainerStateWaiting.cs b/src/generated/Models/V1ContainerStateWaiting.cs deleted file mode 100644 index 2aea452b8..000000000 --- a/src/generated/Models/V1ContainerStateWaiting.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string reason = default(string)) - { - Message = message; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets message regarding why the container is not yet - /// running. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets (brief) reason the container is not yet running. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - } -} diff --git a/src/generated/Models/V1ContainerStatus.cs b/src/generated/Models/V1ContainerStatus.cs deleted file mode 100644 index 1ba76f72b..000000000 --- a/src/generated/Models/V1ContainerStatus.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. - /// Details about the container's current - /// condition. - public V1ContainerStatus(string image, string imageID, string name, bool ready, int restartCount, string containerID = default(string), V1ContainerState lastState = default(V1ContainerState), V1ContainerState state = default(V1ContainerState)) - { - ContainerID = containerID; - Image = image; - ImageID = imageID; - LastState = lastState; - Name = name; - Ready = ready; - RestartCount = restartCount; - State = state; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets container's ID in the format - /// 'docker://&lt;container_id&gt;'. - /// - [JsonProperty(PropertyName = "containerID")] - public string ContainerID { get; set; } - - /// - /// Gets or sets the image the container is running. More info: - /// https://kubernetes.io/docs/concepts/containers/images - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// Gets or sets imageID of the container's image. - /// - [JsonProperty(PropertyName = "imageID")] - public string ImageID { get; set; } - - /// - /// Gets or sets details about the container's last termination - /// condition. - /// - [JsonProperty(PropertyName = "lastState")] - public V1ContainerState LastState { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specifies whether the container has passed its - /// readiness probe. - /// - [JsonProperty(PropertyName = "ready")] - public bool Ready { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Image == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Image"); - } - if (ImageID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ImageID"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (LastState != null) - { - LastState.Validate(); - } - if (State != null) - { - State.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1CrossVersionObjectReference.cs b/src/generated/Models/V1CrossVersionObjectReference.cs deleted file mode 100644 index 32aca5ca6..000000000 --- a/src/generated/Models/V1CrossVersionObjectReference.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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 = default(string)) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets API version of the referent - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds" - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1DaemonEndpoint.cs b/src/generated/Models/V1DaemonEndpoint.cs deleted file mode 100644 index 2f1715a6f..000000000 --- a/src/generated/Models/V1DaemonEndpoint.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1DeleteOptions.cs b/src/generated/Models/V1DeleteOptions.cs deleted file mode 100644 index 8ced75578..000000000 --- a/src/generated/Models/V1DeleteOptions.cs +++ /dev/null @@ -1,131 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/api-conventions.md#resources - /// The duration in seconds before the - /// object should be deleted. Value must be non-negative integer. The - /// value zero indicates delete immediately. If this value is nil, 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/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. - public V1DeleteOptions(string apiVersion = default(string), long? gracePeriodSeconds = default(long?), string kind = default(string), bool? orphanDependents = default(bool?), V1Preconditions preconditions = default(V1Preconditions), string propagationPolicy = default(string)) - { - ApiVersion = apiVersion; - GracePeriodSeconds = gracePeriodSeconds; - Kind = kind; - OrphanDependents = orphanDependents; - Preconditions = preconditions; - PropagationPolicy = propagationPolicy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets the duration in seconds before the object should be - /// deleted. Value must be non-negative integer. The value zero - /// indicates delete immediately. If this value is nil, 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; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets deprecated: please use the PropagationPolicy, this - /// field will be deprecated in 1.7. Should the dependent objects be - /// orphaned. If true/false, the "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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets whether and how garbage collection will be performed. - /// Either this field or OrphanDependents may be set, but not both. The - /// default policy is decided by the existing finalizer set in the - /// metadata.finalizers and the resource-specific default policy. - /// - [JsonProperty(PropertyName = "propagationPolicy")] - public string PropagationPolicy { get; set; } - - } -} diff --git a/src/generated/Models/V1DownwardAPIProjection.cs b/src/generated/Models/V1DownwardAPIProjection.cs deleted file mode 100644 index 6581f6080..000000000 --- a/src/generated/Models/V1DownwardAPIProjection.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList)) - { - Items = items; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets items is a list of DownwardAPIVolume file - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - } -} diff --git a/src/generated/Models/V1DownwardAPIVolumeFile.cs b/src/generated/Models/V1DownwardAPIVolumeFile.cs deleted file mode 100644 index 8d1241067..000000000 --- a/src/generated/Models/V1DownwardAPIVolumeFile.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 to use on this file, must be - /// a value between 0 and 0777. If not specified, the volume - /// defaultMode will be used. This might be in conflict with other - /// options that affect the file mode, like fsGroup, and the result can - /// be other mode bits set. - /// 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 = default(V1ObjectFieldSelector), int? mode = default(int?), V1ResourceFieldSelector resourceFieldRef = default(V1ResourceFieldSelector)) - { - FieldRef = fieldRef; - Mode = mode; - Path = path; - ResourceFieldRef = resourceFieldRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets required: Selects a field of the pod: only - /// annotations, labels, name and namespace are supported. - /// - [JsonProperty(PropertyName = "fieldRef")] - public V1ObjectFieldSelector FieldRef { get; set; } - - /// - /// Gets or sets optional: mode bits to use on this file, must be a - /// value between 0 and 0777. If not specified, the volume defaultMode - /// will be used. This might be in conflict with other options that - /// affect the file mode, like fsGroup, and the result can be other - /// mode bits set. - /// - [JsonProperty(PropertyName = "mode")] - public int? Mode { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - if (FieldRef != null) - { - FieldRef.Validate(); - } - if (ResourceFieldRef != null) - { - ResourceFieldRef.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1DownwardAPIVolumeSource.cs b/src/generated/Models/V1DownwardAPIVolumeSource.cs deleted file mode 100644 index aa09f6cdb..000000000 --- a/src/generated/Models/V1DownwardAPIVolumeSource.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 value between 0 and 0777. Defaults to - /// 0644. Directories within the path are not affected by this setting. - /// This might be in conflict with other options that affect the file - /// mode, like fsGroup, and the result can be other mode bits - /// set. - /// Items is a list of downward API volume - /// file - public V1DownwardAPIVolumeSource(int? defaultMode = default(int?), IList items = default(IList)) - { - DefaultMode = defaultMode; - Items = items; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets optional: mode bits to use on created files by - /// default. Must be a value between 0 and 0777. Defaults to 0644. - /// Directories within the path are not affected by this setting. This - /// might be in conflict with other options that affect the file mode, - /// like fsGroup, and the result can be other mode bits set. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// Gets or sets items is a list of downward API volume file - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - } -} diff --git a/src/generated/Models/V1EmptyDirVolumeSource.cs b/src/generated/Models/V1EmptyDirVolumeSource.cs deleted file mode 100644 index f33b4a0e9..000000000 --- a/src/generated/Models/V1EmptyDirVolumeSource.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), ResourceQuantity sizeLimit = default(ResourceQuantity)) - { - Medium = medium; - SizeLimit = sizeLimit; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1EndpointAddress.cs b/src/generated/Models/V1EndpointAddress.cs deleted file mode 100644 index 34eeadbef..000000000 --- a/src/generated/Models/V1EndpointAddress.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference)) - { - Hostname = hostname; - Ip = ip; - NodeName = nodeName; - TargetRef = targetRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the Hostname of this endpoint - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets optional: Node hosting this endpoint. This can be used - /// to determine endpoints local to a node. - /// - [JsonProperty(PropertyName = "nodeName")] - public string NodeName { get; set; } - - /// - /// Gets or sets 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() - { - if (Ip == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Ip"); - } - } - } -} diff --git a/src/generated/Models/V1EndpointPort.cs b/src/generated/Models/V1EndpointPort.cs deleted file mode 100644 index 66e0287a7..000000000 --- a/src/generated/Models/V1EndpointPort.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// EndpointPort is a tuple that describes a single port. - /// - public partial class V1EndpointPort - { - /// - /// Initializes a new instance of the V1EndpointPort class. - /// - public V1EndpointPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EndpointPort class. - /// - /// The port number of the endpoint. - /// The name of this port (corresponds to - /// ServicePort.Name). Must be a DNS_LABEL. Optional only if one port - /// is defined. - /// The IP protocol for this port. Must be UDP - /// or TCP. Default is TCP. - public V1EndpointPort(int port, string name = default(string), string protocol = default(string)) - { - Name = name; - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of this port (corresponds to - /// ServicePort.Name). Must be a DNS_LABEL. Optional only if one port - /// is defined. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the port number of the endpoint. - /// - [JsonProperty(PropertyName = "port")] - public int Port { get; set; } - - /// - /// Gets or sets the IP protocol for this port. Must be UDP or TCP. - /// Default is TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1EndpointSubset.cs b/src/generated/Models/V1EndpointSubset.cs deleted file mode 100644 index 25c6622ab..000000000 --- a/src/generated/Models/V1EndpointSubset.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IList notReadyAddresses = default(IList), IList ports = default(IList)) - { - Addresses = addresses; - NotReadyAddresses = notReadyAddresses; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets port numbers available on the related IP addresses. - /// - [JsonProperty(PropertyName = "ports")] - public IList Ports { get; set; } - - } -} diff --git a/src/generated/Models/V1Endpoints.cs b/src/generated/Models/V1Endpoints.cs deleted file mode 100644 index c3e98eff3..000000000 --- a/src/generated/Models/V1Endpoints.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// 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. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1Endpoints(IList subsets, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Subsets = subsets; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Subsets == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subsets"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1EndpointsList.cs b/src/generated/Models/V1EndpointsList.cs deleted file mode 100644 index 266b58b41..000000000 --- a/src/generated/Models/V1EndpointsList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1EndpointsList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of endpoints. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1EnvFromSource.cs b/src/generated/Models/V1EnvFromSource.cs deleted file mode 100644 index 77bdac0e7..000000000 --- a/src/generated/Models/V1EnvFromSource.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 identifer to prepend to each key - /// in the ConfigMap. Must be a C_IDENTIFIER. - /// The Secret to select from - public V1EnvFromSource(V1ConfigMapEnvSource configMapRef = default(V1ConfigMapEnvSource), string prefix = default(string), V1SecretEnvSource secretRef = default(V1SecretEnvSource)) - { - ConfigMapRef = configMapRef; - Prefix = prefix; - SecretRef = secretRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the ConfigMap to select from - /// - [JsonProperty(PropertyName = "configMapRef")] - public V1ConfigMapEnvSource ConfigMapRef { get; set; } - - /// - /// Gets or sets an optional identifer to prepend to each key in the - /// ConfigMap. Must be a C_IDENTIFIER. - /// - [JsonProperty(PropertyName = "prefix")] - public string Prefix { get; set; } - - /// - /// Gets or sets the Secret to select from - /// - [JsonProperty(PropertyName = "secretRef")] - public V1SecretEnvSource SecretRef { get; set; } - - } -} diff --git a/src/generated/Models/V1EnvVar.cs b/src/generated/Models/V1EnvVar.cs deleted file mode 100644 index a3f69869c..000000000 --- a/src/generated/Models/V1EnvVar.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 previous defined environment variables in the container - /// and any service environment variables. If a variable cannot be - /// resolved, the reference in the input string will be unchanged. The - /// $(VAR_NAME) syntax can be escaped with a double $$, ie: - /// $$(VAR_NAME). Escaped references will never be expanded, regardless - /// of whether the variable exists or not. Defaults to "". - /// Source for the environment variable's - /// value. Cannot be used if value is not empty. - public V1EnvVar(string name, string value = default(string), V1EnvVarSource valueFrom = default(V1EnvVarSource)) - { - Name = name; - Value = value; - ValueFrom = valueFrom; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the environment variable. Must be a - /// C_IDENTIFIER. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets variable references $(VAR_NAME) are expanded using the - /// previous defined environment variables in the container and any - /// service environment variables. If a variable cannot be resolved, - /// the reference in the input string will be unchanged. The - /// $(VAR_NAME) syntax can be escaped with a double $$, ie: - /// $$(VAR_NAME). Escaped references will never be expanded, regardless - /// of whether the variable exists or not. Defaults to "". - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Gets or sets 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() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (ValueFrom != null) - { - ValueFrom.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1EnvVarSource.cs b/src/generated/Models/V1EnvVarSource.cs deleted file mode 100644 index e0a89e3dc..000000000 --- a/src/generated/Models/V1EnvVarSource.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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, - /// metadata.annotations, spec.nodeName, spec.serviceAccountName, - /// status.hostIP, status.podIP. - /// 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 = default(V1ConfigMapKeySelector), V1ObjectFieldSelector fieldRef = default(V1ObjectFieldSelector), V1ResourceFieldSelector resourceFieldRef = default(V1ResourceFieldSelector), V1SecretKeySelector secretKeyRef = default(V1SecretKeySelector)) - { - ConfigMapKeyRef = configMapKeyRef; - FieldRef = fieldRef; - ResourceFieldRef = resourceFieldRef; - SecretKeyRef = secretKeyRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets selects a key of a ConfigMap. - /// - [JsonProperty(PropertyName = "configMapKeyRef")] - public V1ConfigMapKeySelector ConfigMapKeyRef { get; set; } - - /// - /// Gets or sets selects a field of the pod: supports metadata.name, - /// metadata.namespace, metadata.labels, metadata.annotations, - /// spec.nodeName, spec.serviceAccountName, status.hostIP, - /// status.podIP. - /// - [JsonProperty(PropertyName = "fieldRef")] - public V1ObjectFieldSelector FieldRef { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (ConfigMapKeyRef != null) - { - ConfigMapKeyRef.Validate(); - } - if (FieldRef != null) - { - FieldRef.Validate(); - } - if (ResourceFieldRef != null) - { - ResourceFieldRef.Validate(); - } - if (SecretKeyRef != null) - { - SecretKeyRef.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1Event.cs b/src/generated/Models/V1Event.cs deleted file mode 100644 index d8e63b4fe..000000000 --- a/src/generated/Models/V1Event.cs +++ /dev/null @@ -1,183 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Event is a report of an event somewhere in the cluster. - /// - public partial class V1Event - { - /// - /// Initializes a new instance of the V1Event class. - /// - public V1Event() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Event class. - /// - /// The object that this event is - /// about. - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources - /// The number of times this event has - /// occurred. - /// 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/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. - /// 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 V1Event(V1ObjectReference involvedObject, V1ObjectMeta metadata, string apiVersion = default(string), int? count = default(int?), System.DateTime? firstTimestamp = default(System.DateTime?), string kind = default(string), System.DateTime? lastTimestamp = default(System.DateTime?), string message = default(string), string reason = default(string), V1EventSource source = default(V1EventSource), string type = default(string)) - { - ApiVersion = apiVersion; - Count = count; - FirstTimestamp = firstTimestamp; - InvolvedObject = involvedObject; - Kind = kind; - LastTimestamp = lastTimestamp; - Message = message; - Metadata = metadata; - Reason = reason; - Source = source; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets the number of times this event has occurred. - /// - [JsonProperty(PropertyName = "count")] - public int? Count { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the object that this event is about. - /// - [JsonProperty(PropertyName = "involvedObject")] - public V1ObjectReference InvolvedObject { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets the time at which the most recent occurrence of this - /// event was recorded. - /// - [JsonProperty(PropertyName = "lastTimestamp")] - public System.DateTime? LastTimestamp { get; set; } - - /// - /// Gets or sets a human-readable description of the status of this - /// operation. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the component reporting this event. Should be a short - /// machine understandable string. - /// - [JsonProperty(PropertyName = "source")] - public V1EventSource Source { get; set; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1EventList.cs b/src/generated/Models/V1EventList.cs deleted file mode 100644 index 020e9ec65..000000000 --- a/src/generated/Models/V1EventList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// EventList is a list of events. - /// - public partial class V1EventList - { - /// - /// Initializes a new instance of the V1EventList class. - /// - public V1EventList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1EventList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1EventList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of events - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1EventSource.cs b/src/generated/Models/V1EventSource.cs deleted file mode 100644 index 6f282a70d..000000000 --- a/src/generated/Models/V1EventSource.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string host = default(string)) - { - Component = component; - Host = host; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets component from which the event is generated. - /// - [JsonProperty(PropertyName = "component")] - public string Component { get; set; } - - /// - /// Gets or sets node name on which the event is generated. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - } -} diff --git a/src/generated/Models/V1ExecAction.cs b/src/generated/Models/V1ExecAction.cs deleted file mode 100644 index 5daf8d60c..000000000 --- a/src/generated/Models/V1ExecAction.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList)) - { - Command = command; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1FCVolumeSource.cs b/src/generated/Models/V1FCVolumeSource.cs deleted file mode 100644 index 8f0de1e3a..000000000 --- a/src/generated/Models/V1FCVolumeSource.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(string), int? lun = default(int?), bool? readOnlyProperty = default(bool?), IList targetWWNs = default(IList), IList wwids = default(IList)) - { - FsType = fsType; - Lun = lun; - ReadOnlyProperty = readOnlyProperty; - TargetWWNs = targetWWNs; - Wwids = wwids; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets optional: FC target lun number - /// - [JsonProperty(PropertyName = "lun")] - public int? Lun { get; set; } - - /// - /// Gets or sets optional: Defaults to false (read/write). ReadOnly - /// here will force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets optional: FC target worldwide names (WWNs) - /// - [JsonProperty(PropertyName = "targetWWNs")] - public IList TargetWWNs { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1FlexVolumeSource.cs b/src/generated/Models/V1FlexVolumeSource.cs deleted file mode 100644 index 79fbf05e4..000000000 --- a/src/generated/Models/V1FlexVolumeSource.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// FlexVolume represents a generic volume resource that is - /// provisioned/attached using an exec based plugin. This is an alpha - /// feature and may change in future. - /// - 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 = default(string), IDictionary options = default(IDictionary), bool? readOnlyProperty = default(bool?), V1LocalObjectReference secretRef = default(V1LocalObjectReference)) - { - Driver = driver; - FsType = fsType; - Options = options; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets driver is the name of the driver to use for this - /// volume. - /// - [JsonProperty(PropertyName = "driver")] - public string Driver { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets optional: Extra command options if any. - /// - [JsonProperty(PropertyName = "options")] - public IDictionary Options { get; set; } - - /// - /// Gets or sets optional: Defaults to false (read/write). ReadOnly - /// here will force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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() - { - if (Driver == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Driver"); - } - } - } -} diff --git a/src/generated/Models/V1FlockerVolumeSource.cs b/src/generated/Models/V1FlockerVolumeSource.cs deleted file mode 100644 index 4e6738967..000000000 --- a/src/generated/Models/V1FlockerVolumeSource.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string datasetUUID = default(string)) - { - DatasetName = datasetName; - DatasetUUID = datasetUUID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the dataset stored as metadata -&gt; name - /// on the dataset for Flocker should be considered as deprecated - /// - [JsonProperty(PropertyName = "datasetName")] - public string DatasetName { get; set; } - - /// - /// Gets or sets UUID of the dataset. This is unique identifier of a - /// Flocker dataset - /// - [JsonProperty(PropertyName = "datasetUUID")] - public string DatasetUUID { get; set; } - - } -} diff --git a/src/generated/Models/V1GCEPersistentDiskVolumeSource.cs b/src/generated/Models/V1GCEPersistentDiskVolumeSource.cs deleted file mode 100644 index 3ab824ce9..000000000 --- a/src/generated/Models/V1GCEPersistentDiskVolumeSource.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), int? partition = default(int?), bool? readOnlyProperty = default(bool?)) - { - FsType = fsType; - Partition = partition; - PdName = pdName; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (PdName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PdName"); - } - } - } -} diff --git a/src/generated/Models/V1GitRepoVolumeSource.cs b/src/generated/Models/V1GitRepoVolumeSource.cs deleted file mode 100644 index 716be8e12..000000000 --- a/src/generated/Models/V1GitRepoVolumeSource.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. - /// - 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 = default(string), string revision = default(string)) - { - Directory = directory; - Repository = repository; - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets repository URL - /// - [JsonProperty(PropertyName = "repository")] - public string Repository { get; set; } - - /// - /// Gets or sets 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() - { - if (Repository == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Repository"); - } - } - } -} diff --git a/src/generated/Models/V1GlusterfsVolumeSource.cs b/src/generated/Models/V1GlusterfsVolumeSource.cs deleted file mode 100644 index f7db47cd8..000000000 --- a/src/generated/Models/V1GlusterfsVolumeSource.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - /// Path is the Glusterfs volume path. More info: - /// https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - public V1GlusterfsVolumeSource(string endpoints, string path, bool? readOnlyProperty = default(bool?)) - { - Endpoints = endpoints; - Path = path; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets endpointsName is the endpoint name that details - /// Glusterfs topology. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "endpoints")] - public string Endpoints { get; set; } - - /// - /// Gets or sets path is the Glusterfs volume path. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets readOnly here will force the Glusterfs volume to be - /// mounted with read-only permissions. Defaults to false. More info: - /// https://releases.k8s.io/HEAD/examples/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() - { - if (Endpoints == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Endpoints"); - } - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - } -} diff --git a/src/generated/Models/V1GroupVersionForDiscovery.cs b/src/generated/Models/V1GroupVersionForDiscovery.cs deleted file mode 100644 index 747b142cf..000000000 --- a/src/generated/Models/V1GroupVersionForDiscovery.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets groupVersion specifies the API group and version in - /// the form "group/version" - /// - [JsonProperty(PropertyName = "groupVersion")] - public string GroupVersion { get; set; } - - /// - /// Gets or sets 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() - { - if (GroupVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "GroupVersion"); - } - if (Version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Version"); - } - } - } -} diff --git a/src/generated/Models/V1HTTPGetAction.cs b/src/generated/Models/V1HTTPGetAction.cs deleted file mode 100644 index a5c4e91dc..000000000 --- a/src/generated/Models/V1HTTPGetAction.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(string), IList httpHeaders = default(IList), string path = default(string), string scheme = default(string)) - { - Host = host; - HttpHeaders = httpHeaders; - Path = path; - Port = port; - Scheme = scheme; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets custom headers to set in the request. HTTP allows - /// repeated headers. - /// - [JsonProperty(PropertyName = "httpHeaders")] - public IList HttpHeaders { get; set; } - - /// - /// Gets or sets path to access on the HTTP server. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 element in HttpHeaders) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1HTTPHeader.cs b/src/generated/Models/V1HTTPHeader.cs deleted file mode 100644 index 8c7a26b92..000000000 --- a/src/generated/Models/V1HTTPHeader.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets the header field name - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the header field value - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (Value == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Value"); - } - } - } -} diff --git a/src/generated/Models/V1Handler.cs b/src/generated/Models/V1Handler.cs deleted file mode 100644 index 1a26e23c3..000000000 --- a/src/generated/Models/V1Handler.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(V1ExecAction), V1HTTPGetAction httpGet = default(V1HTTPGetAction), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction)) - { - Exec = exec; - HttpGet = httpGet; - TcpSocket = tcpSocket; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets one and only one of the following should be specified. - /// Exec specifies the action to take. - /// - [JsonProperty(PropertyName = "exec")] - public V1ExecAction Exec { get; set; } - - /// - /// Gets or sets hTTPGet specifies the http request to perform. - /// - [JsonProperty(PropertyName = "httpGet")] - public V1HTTPGetAction HttpGet { get; set; } - - /// - /// Gets or sets 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() - { - if (HttpGet != null) - { - HttpGet.Validate(); - } - if (TcpSocket != null) - { - TcpSocket.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1HorizontalPodAutoscaler.cs b/src/generated/Models/V1HorizontalPodAutoscaler.cs deleted file mode 100644 index 6d2eddea6..000000000 --- a/src/generated/Models/V1HorizontalPodAutoscaler.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// behaviour of autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// current information about the - /// autoscaler. - public V1HorizontalPodAutoscaler(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1HorizontalPodAutoscalerSpec spec = default(V1HorizontalPodAutoscalerSpec), V1HorizontalPodAutoscalerStatus status = default(V1HorizontalPodAutoscalerStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets behaviour of autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V1HorizontalPodAutoscalerSpec Spec { get; set; } - - /// - /// Gets or sets current information about the autoscaler. - /// - [JsonProperty(PropertyName = "status")] - public V1HorizontalPodAutoscalerStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1HorizontalPodAutoscalerList.cs b/src/generated/Models/V1HorizontalPodAutoscalerList.cs deleted file mode 100644 index 94dc7284a..000000000 --- a/src/generated/Models/V1HorizontalPodAutoscalerList.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. - public V1HorizontalPodAutoscalerList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of horizontal pod autoscaler objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1HorizontalPodAutoscalerSpec.cs b/src/generated/Models/V1HorizontalPodAutoscalerSpec.cs deleted file mode 100644 index d34f40aef..000000000 --- a/src/generated/Models/V1HorizontalPodAutoscalerSpec.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. - /// lower limit for the number of pods that - /// can be set by the autoscaler, default 1. - /// 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 = default(int?), int? targetCPUUtilizationPercentage = default(int?)) - { - MaxReplicas = maxReplicas; - MinReplicas = minReplicas; - ScaleTargetRef = scaleTargetRef; - TargetCPUUtilizationPercentage = targetCPUUtilizationPercentage; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets lower limit for the number of pods that can be set by - /// the autoscaler, default 1. - /// - [JsonProperty(PropertyName = "minReplicas")] - public int? MinReplicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (ScaleTargetRef != null) - { - ScaleTargetRef.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1HorizontalPodAutoscalerStatus.cs b/src/generated/Models/V1HorizontalPodAutoscalerStatus.cs deleted file mode 100644 index f546c152f..000000000 --- a/src/generated/Models/V1HorizontalPodAutoscalerStatus.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(int?), System.DateTime? lastScaleTime = default(System.DateTime?), long? observedGeneration = default(long?)) - { - CurrentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - CurrentReplicas = currentReplicas; - DesiredReplicas = desiredReplicas; - LastScaleTime = lastScaleTime; - ObservedGeneration = observedGeneration; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets current number of replicas of pods managed by this - /// autoscaler. - /// - [JsonProperty(PropertyName = "currentReplicas")] - public int CurrentReplicas { get; set; } - - /// - /// Gets or sets desired number of replicas of pods managed by this - /// autoscaler. - /// - [JsonProperty(PropertyName = "desiredReplicas")] - public int DesiredReplicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1HostAlias.cs b/src/generated/Models/V1HostAlias.cs deleted file mode 100644 index 50e13c2d2..000000000 --- a/src/generated/Models/V1HostAlias.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), string ip = default(string)) - { - Hostnames = hostnames; - Ip = ip; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets hostnames for the above IP address. - /// - [JsonProperty(PropertyName = "hostnames")] - public IList Hostnames { get; set; } - - /// - /// Gets or sets IP address of the host file entry. - /// - [JsonProperty(PropertyName = "ip")] - public string Ip { get; set; } - - } -} diff --git a/src/generated/Models/V1HostPathVolumeSource.cs b/src/generated/Models/V1HostPathVolumeSource.cs deleted file mode 100644 index 0638ba1a5..000000000 --- a/src/generated/Models/V1HostPathVolumeSource.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string)) - { - Path = path; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - } -} diff --git a/src/generated/Models/V1IPBlock.cs b/src/generated/Models/V1IPBlock.cs deleted file mode 100644 index 64e96f611..000000000 --- a/src/generated/Models/V1IPBlock.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") 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" - /// Except is a slice of CIDRs that should not be - /// included within an IP Block Valid examples are "192.168.1.1/24" - /// Except values will be rejected if they are outside the CIDR - /// range - public V1IPBlock(string cidr, IList except = default(IList)) - { - Cidr = cidr; - Except = except; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets CIDR is a string representing the IP Block Valid - /// examples are "192.168.1.1/24" - /// - [JsonProperty(PropertyName = "cidr")] - public string Cidr { get; set; } - - /// - /// Gets or sets except is a slice of CIDRs that should not be included - /// within an IP Block Valid examples are "192.168.1.1/24" 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() - { - if (Cidr == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Cidr"); - } - } - } -} diff --git a/src/generated/Models/V1ISCSIVolumeSource.cs b/src/generated/Models/V1ISCSIVolumeSource.cs deleted file mode 100644 index 630f6dd15..000000000 --- a/src/generated/Models/V1ISCSIVolumeSource.cs +++ /dev/null @@ -1,179 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// Optional: Defaults to 'default' (tcp). - /// iSCSI interface name that uses an iSCSI transport. - /// 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 = default(bool?), bool? chapAuthSession = default(bool?), string fsType = default(string), string initiatorName = default(string), string iscsiInterface = default(string), IList portals = default(IList), bool? readOnlyProperty = default(bool?), V1LocalObjectReference secretRef = default(V1LocalObjectReference)) - { - 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(); - - /// - /// Gets or sets whether support iSCSI Discovery CHAP authentication - /// - [JsonProperty(PropertyName = "chapAuthDiscovery")] - public bool? ChapAuthDiscovery { get; set; } - - /// - /// Gets or sets whether support iSCSI Session CHAP authentication - /// - [JsonProperty(PropertyName = "chapAuthSession")] - public bool? ChapAuthSession { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets custom iSCSI initiator name. If initiatorName is - /// specified with iscsiInterface simultaneously, new iSCSI interface - /// &lt;target portal&gt;:&lt;volume name&gt; will be - /// created for the connection. - /// - [JsonProperty(PropertyName = "initiatorName")] - public string InitiatorName { get; set; } - - /// - /// Gets or sets target iSCSI Qualified Name. - /// - [JsonProperty(PropertyName = "iqn")] - public string Iqn { get; set; } - - /// - /// Gets or sets optional: Defaults to 'default' (tcp). iSCSI interface - /// name that uses an iSCSI transport. - /// - [JsonProperty(PropertyName = "iscsiInterface")] - public string IscsiInterface { get; set; } - - /// - /// Gets or sets iSCSI target lun number. - /// - [JsonProperty(PropertyName = "lun")] - public int Lun { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets readOnly here will force the ReadOnly setting in - /// VolumeMounts. Defaults to false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets CHAP secret for iSCSI target and initiator - /// authentication - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// Gets or sets 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() - { - if (Iqn == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Iqn"); - } - if (TargetPortal == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TargetPortal"); - } - } - } -} diff --git a/src/generated/Models/V1Initializer.cs b/src/generated/Models/V1Initializer.cs deleted file mode 100644 index 2e411d938..000000000 --- a/src/generated/Models/V1Initializer.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Initializer is information about an initializer that has not yet - /// completed. - /// - public partial class V1Initializer - { - /// - /// Initializes a new instance of the V1Initializer class. - /// - public V1Initializer() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Initializer class. - /// - /// name of the process that is responsible for - /// initializing this object. - public V1Initializer(string name) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name of the process that is responsible for - /// initializing this object. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1Initializers.cs b/src/generated/Models/V1Initializers.cs deleted file mode 100644 index 9d6625285..000000000 --- a/src/generated/Models/V1Initializers.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Initializers tracks the progress of initialization. - /// - public partial class V1Initializers - { - /// - /// Initializes a new instance of the V1Initializers class. - /// - public V1Initializers() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1Initializers class. - /// - /// Pending is a list of initializers that must - /// execute in order before this object is visible. When the last - /// pending initializer is removed, and no failing result is set, the - /// initializers struct will be set to nil and the object is considered - /// as initialized and visible to all clients. - /// If result is set with the Failure field, the - /// object will be persisted to storage and then deleted, ensuring that - /// other clients can observe the deletion. - public V1Initializers(IList pending, V1Status result = default(V1Status)) - { - Pending = pending; - Result = result; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets pending is a list of initializers that must execute in - /// order before this object is visible. When the last pending - /// initializer is removed, and no failing result is set, the - /// initializers struct will be set to nil and the object is considered - /// as initialized and visible to all clients. - /// - [JsonProperty(PropertyName = "pending")] - public IList Pending { get; set; } - - /// - /// Gets or sets if result is set with the Failure field, the object - /// will be persisted to storage and then deleted, ensuring that other - /// clients can observe the deletion. - /// - [JsonProperty(PropertyName = "result")] - public V1Status Result { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Pending == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Pending"); - } - if (Pending != null) - { - foreach (var element in Pending) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1Job.cs b/src/generated/Models/V1Job.cs deleted file mode 100644 index 7d2351e00..000000000 --- a/src/generated/Models/V1Job.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Specification of the desired behavior of a job. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// Current status of a job. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1Job(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec), V1JobStatus status = default(V1JobStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of a job. More - /// info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1JobSpec Spec { get; set; } - - /// - /// Gets or sets current status of a job. More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1JobCondition.cs b/src/generated/Models/V1JobCondition.cs deleted file mode 100644 index d3b783aaf..000000000 --- a/src/generated/Models/V1JobCondition.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(System.DateTime?), System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time the condition was checked. - /// - [JsonProperty(PropertyName = "lastProbeTime")] - public System.DateTime? LastProbeTime { get; set; } - - /// - /// Gets or sets last time the condition transit from one status to - /// another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets human readable message indicating details about last - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets (brief) reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets 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() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1JobList.cs b/src/generated/Models/V1JobList.cs deleted file mode 100644 index 939d3d50f..000000000 --- a/src/generated/Models/V1JobList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1JobList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of Jobs. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1JobSpec.cs b/src/generated/Models/V1JobSpec.cs deleted file mode 100644 index 421c4a315..000000000 --- a/src/generated/Models/V1JobSpec.cs +++ /dev/null @@ -1,170 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 active before - /// the system tries to terminate it; value must be positive - /// integer - /// Specifies the number of retries before - /// marking this job failed. Defaults to 6 - /// 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://git.k8s.io/community/contributors/design-proposals/selector-generation.md - /// 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 - public V1JobSpec(V1PodTemplateSpec template, long? activeDeadlineSeconds = default(long?), int? backoffLimit = default(int?), int? completions = default(int?), bool? manualSelector = default(bool?), int? parallelism = default(int?), V1LabelSelector selector = default(V1LabelSelector)) - { - ActiveDeadlineSeconds = activeDeadlineSeconds; - BackoffLimit = backoffLimit; - Completions = completions; - ManualSelector = manualSelector; - Parallelism = parallelism; - Selector = selector; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets specifies the duration in seconds relative to the - /// startTime that the job may be active before the system tries to - /// terminate it; value must be positive integer - /// - [JsonProperty(PropertyName = "activeDeadlineSeconds")] - public long? ActiveDeadlineSeconds { get; set; } - - /// - /// Gets or sets specifies the number of retries before marking this - /// job failed. Defaults to 6 - /// - [JsonProperty(PropertyName = "backoffLimit")] - public int? BackoffLimit { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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://git.k8s.io/community/contributors/design-proposals/selector-generation.md - /// - [JsonProperty(PropertyName = "manualSelector")] - public bool? ManualSelector { get; set; } - - /// - /// Gets or sets 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) &lt; .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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1JobStatus.cs b/src/generated/Models/V1JobStatus.cs deleted file mode 100644 index 95cbde130..000000000 --- a/src/generated/Models/V1JobStatus.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// 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 latest available observations of an - /// object's current state. 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 was - /// acknowledged by the job controller. 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 number of pods which reached phase - /// Succeeded. - public V1JobStatus(int? active = default(int?), System.DateTime? completionTime = default(System.DateTime?), IList conditions = default(IList), int? failed = default(int?), System.DateTime? startTime = default(System.DateTime?), int? succeeded = default(int?)) - { - Active = active; - CompletionTime = completionTime; - Conditions = conditions; - Failed = failed; - StartTime = startTime; - Succeeded = succeeded; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the number of actively running pods. - /// - [JsonProperty(PropertyName = "active")] - public int? Active { get; set; } - - /// - /// Gets or sets 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. - /// - [JsonProperty(PropertyName = "completionTime")] - public System.DateTime? CompletionTime { get; set; } - - /// - /// Gets or sets the latest available observations of an object's - /// current state. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets the number of pods which reached phase Failed. - /// - [JsonProperty(PropertyName = "failed")] - public int? Failed { get; set; } - - /// - /// Gets or sets represents time when the job was acknowledged by the - /// job controller. It is not guaranteed to be set in happens-before - /// order across separate operations. It is represented in RFC3339 form - /// and is in UTC. - /// - [JsonProperty(PropertyName = "startTime")] - public System.DateTime? StartTime { get; set; } - - /// - /// Gets or sets the number of pods which reached phase Succeeded. - /// - [JsonProperty(PropertyName = "succeeded")] - public int? Succeeded { get; set; } - - } -} diff --git a/src/generated/Models/V1KeyToPath.cs b/src/generated/Models/V1KeyToPath.cs deleted file mode 100644 index 303e3c639..000000000 --- a/src/generated/Models/V1KeyToPath.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 to use on this file, must be - /// a value between 0 and 0777. If not specified, the volume - /// defaultMode will be used. This might be in conflict with other - /// options that affect the file mode, like fsGroup, and the result can - /// be other mode bits set. - public V1KeyToPath(string key, string path, int? mode = default(int?)) - { - Key = key; - Mode = mode; - Path = path; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the key to project. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Gets or sets optional: mode bits to use on this file, must be a - /// value between 0 and 0777. If not specified, the volume defaultMode - /// will be used. This might be in conflict with other options that - /// affect the file mode, like fsGroup, and the result can be other - /// mode bits set. - /// - [JsonProperty(PropertyName = "mode")] - public int? Mode { get; set; } - - /// - /// Gets or sets 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() - { - if (Key == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Key"); - } - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - } -} diff --git a/src/generated/Models/V1LabelSelector.cs b/src/generated/Models/V1LabelSelector.cs deleted file mode 100644 index 1a6bbf848..000000000 --- a/src/generated/Models/V1LabelSelector.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IDictionary matchLabels = default(IDictionary)) - { - MatchExpressions = matchExpressions; - MatchLabels = matchLabels; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets matchExpressions is a list of label selector - /// requirements. The requirements are ANDed. - /// - [JsonProperty(PropertyName = "matchExpressions")] - public IList MatchExpressions { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1LabelSelectorRequirement.cs b/src/generated/Models/V1LabelSelectorRequirement.cs deleted file mode 100644 index ef8eda257..000000000 --- a/src/generated/Models/V1LabelSelectorRequirement.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList)) - { - Key = key; - OperatorProperty = operatorProperty; - Values = values; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets key is the label key that the selector applies to. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Key == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Key"); - } - if (OperatorProperty == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty"); - } - } - } -} diff --git a/src/generated/Models/V1Lifecycle.cs b/src/generated/Models/V1Lifecycle.cs deleted file mode 100644 index 95e48d9ed..000000000 --- a/src/generated/Models/V1Lifecycle.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. The container is terminated after the - /// handler completes. The reason for termination is passed to the - /// handler. Regardless of the outcome of the handler, the container is - /// eventually terminated. Other management of the container blocks - /// until the hook completes. More info: - /// https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - public V1Lifecycle(V1Handler postStart = default(V1Handler), V1Handler preStop = default(V1Handler)) - { - PostStart = postStart; - PreStop = preStop; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets preStop is called immediately before a container is - /// terminated. The container is terminated after the handler - /// completes. The reason for termination is passed to the handler. - /// Regardless of the outcome of the handler, the container is - /// eventually terminated. 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 = "preStop")] - public V1Handler PreStop { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (PostStart != null) - { - PostStart.Validate(); - } - if (PreStop != null) - { - PreStop.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1LimitRange.cs b/src/generated/Models/V1LimitRange.cs deleted file mode 100644 index 85a56bc07..000000000 --- a/src/generated/Models/V1LimitRange.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Spec defines the limits enforced. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1LimitRange(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1LimitRangeSpec spec = default(V1LimitRangeSpec)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the limits enforced. More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1LimitRangeItem.cs b/src/generated/Models/V1LimitRangeItem.cs deleted file mode 100644 index 8f1be4e38..000000000 --- a/src/generated/Models/V1LimitRangeItem.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// 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. - /// Type of resource that this limit applies - /// to. - public V1LimitRangeItem(IDictionary defaultProperty = default(IDictionary), IDictionary defaultRequest = default(IDictionary), IDictionary max = default(IDictionary), IDictionary maxLimitRequestRatio = default(IDictionary), IDictionary min = default(IDictionary), string type = default(string)) - { - 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(); - - /// - /// Gets or sets default resource requirement limit value by resource - /// name if resource limit is omitted. - /// - [JsonProperty(PropertyName = "default")] - public IDictionary DefaultProperty { get; set; } - - /// - /// Gets or sets defaultRequest is the default resource requirement - /// request value by resource name if resource request is omitted. - /// - [JsonProperty(PropertyName = "defaultRequest")] - public IDictionary DefaultRequest { get; set; } - - /// - /// Gets or sets max usage constraints on this kind by resource name. - /// - [JsonProperty(PropertyName = "max")] - public IDictionary Max { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets min usage constraints on this kind by resource name. - /// - [JsonProperty(PropertyName = "min")] - public IDictionary Min { get; set; } - - /// - /// Gets or sets type of resource that this limit applies to. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V1LimitRangeList.cs b/src/generated/Models/V1LimitRangeList.cs deleted file mode 100644 index afa0afed3..000000000 --- a/src/generated/Models/V1LimitRangeList.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://git.k8s.io/community/contributors/design-proposals/admission_control_limit_range.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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1LimitRangeList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of LimitRange objects. More info: - /// https://git.k8s.io/community/contributors/design-proposals/admission_control_limit_range.md - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1LimitRangeSpec.cs b/src/generated/Models/V1LimitRangeSpec.cs deleted file mode 100644 index 6fe74f0aa..000000000 --- a/src/generated/Models/V1LimitRangeSpec.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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(); - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Limits"); - } - } - } -} diff --git a/src/generated/Models/V1ListMeta.cs b/src/generated/Models/V1ListMeta.cs deleted file mode 100644 index 7a5a09db3..000000000 --- a/src/generated/Models/V1ListMeta.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 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. - /// 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/api-conventions.md#concurrency-control-and-consistency - /// selfLink is a URL representing this object. - /// Populated by the system. Read-only. - public V1ListMeta(string continueProperty = default(string), string resourceVersion = default(string), string selfLink = default(string)) - { - ContinueProperty = continueProperty; - ResourceVersion = resourceVersion; - SelfLink = selfLink; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 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. - /// - [JsonProperty(PropertyName = "continue")] - public string ContinueProperty { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#concurrency-control-and-consistency - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// Gets or sets selfLink is a URL representing this object. Populated - /// by the system. Read-only. - /// - [JsonProperty(PropertyName = "selfLink")] - public string SelfLink { get; set; } - - } -} diff --git a/src/generated/Models/V1LoadBalancerIngress.cs b/src/generated/Models/V1LoadBalancerIngress.cs deleted file mode 100644 index 18d396bfb..000000000 --- a/src/generated/Models/V1LoadBalancerIngress.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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) - public V1LoadBalancerIngress(string hostname = default(string), string ip = default(string)) - { - Hostname = hostname; - Ip = ip; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets hostname is set for load-balancer ingress points that - /// are DNS based (typically AWS load-balancers) - /// - [JsonProperty(PropertyName = "hostname")] - public string Hostname { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1LoadBalancerStatus.cs b/src/generated/Models/V1LoadBalancerStatus.cs deleted file mode 100644 index 8d651513e..000000000 --- a/src/generated/Models/V1LoadBalancerStatus.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList)) - { - Ingress = ingress; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1LocalObjectReference.cs b/src/generated/Models/V1LocalObjectReference.cs deleted file mode 100644 index b7008c287..000000000 --- a/src/generated/Models/V1LocalObjectReference.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string)) - { - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1LocalSubjectAccessReview.cs b/src/generated/Models/V1LocalSubjectAccessReview.cs deleted file mode 100644 index 03b8cb442..000000000 --- a/src/generated/Models/V1LocalSubjectAccessReview.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request is allowed or not - public V1LocalSubjectAccessReview(V1SubjectAccessReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1SubjectAccessReviewStatus status = default(V1SubjectAccessReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1LocalVolumeSource.cs b/src/generated/Models/V1LocalVolumeSource.cs deleted file mode 100644 index 1d3504bd7..000000000 --- a/src/generated/Models/V1LocalVolumeSource.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Local represents directly-attached storage with node affinity - /// - 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 For - /// alpha, this path must be a directory Once block as a source is - /// supported, then this path can point to a block device - public V1LocalVolumeSource(string path) - { - Path = path; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the full path to the volume on the node For alpha, - /// this path must be a directory Once block as a source is supported, - /// then this path can point to a block device - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - } -} diff --git a/src/generated/Models/V1NFSVolumeSource.cs b/src/generated/Models/V1NFSVolumeSource.cs deleted file mode 100644 index 13288547a..000000000 --- a/src/generated/Models/V1NFSVolumeSource.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(bool?)) - { - Path = path; - ReadOnlyProperty = readOnlyProperty; - Server = server; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - if (Server == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Server"); - } - } - } -} diff --git a/src/generated/Models/V1Namespace.cs b/src/generated/Models/V1Namespace.cs deleted file mode 100644 index 1aec193d7..000000000 --- a/src/generated/Models/V1Namespace.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Spec defines the behavior of the Namespace. More - /// info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// Status describes the current status of a - /// Namespace. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1Namespace(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1NamespaceSpec spec = default(V1NamespaceSpec), V1NamespaceStatus status = default(V1NamespaceStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the behavior of the Namespace. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1NamespaceSpec Spec { get; set; } - - /// - /// Gets or sets status describes the current status of a Namespace. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1NamespaceList.cs b/src/generated/Models/V1NamespaceList.cs deleted file mode 100644 index 402a4d67d..000000000 --- a/src/generated/Models/V1NamespaceList.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1NamespaceList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1NamespaceSpec.cs b/src/generated/Models/V1NamespaceSpec.cs deleted file mode 100644 index c1b45f5f9..000000000 --- a/src/generated/Models/V1NamespaceSpec.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://git.k8s.io/community/contributors/design-proposals/namespaces.md#finalizers - public V1NamespaceSpec(IList finalizers = default(IList)) - { - Finalizers = finalizers; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets finalizers is an opaque list of values that must be - /// empty to permanently remove object from storage. More info: - /// https://git.k8s.io/community/contributors/design-proposals/namespaces.md#finalizers - /// - [JsonProperty(PropertyName = "finalizers")] - public IList Finalizers { get; set; } - - } -} diff --git a/src/generated/Models/V1NamespaceStatus.cs b/src/generated/Models/V1NamespaceStatus.cs deleted file mode 100644 index e33674dce..000000000 --- a/src/generated/Models/V1NamespaceStatus.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// - /// Phase is the current lifecycle phase of the - /// namespace. More info: - /// https://git.k8s.io/community/contributors/design-proposals/namespaces.md#phases - public V1NamespaceStatus(string phase = default(string)) - { - Phase = phase; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets phase is the current lifecycle phase of the namespace. - /// More info: - /// https://git.k8s.io/community/contributors/design-proposals/namespaces.md#phases - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - } -} diff --git a/src/generated/Models/V1NetworkPolicy.cs b/src/generated/Models/V1NetworkPolicy.cs deleted file mode 100644 index 22abb633e..000000000 --- a/src/generated/Models/V1NetworkPolicy.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Specification of the desired behavior for this - /// NetworkPolicy. - public V1NetworkPolicy(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1NetworkPolicySpec spec = default(V1NetworkPolicySpec)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1NetworkPolicyEgressRule.cs b/src/generated/Models/V1NetworkPolicyEgressRule.cs deleted file mode 100644 index ccf082357..000000000 --- a/src/generated/Models/V1NetworkPolicyEgressRule.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IList to = default(IList)) - { - Ports = ports; - To = to; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1NetworkPolicyIngressRule.cs b/src/generated/Models/V1NetworkPolicyIngressRule.cs deleted file mode 100644 index 778bf20d7..000000000 --- a/src/generated/Models/V1NetworkPolicyIngressRule.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 on 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 = default(IList), IList ports = default(IList)) - { - FromProperty = fromProperty; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 on 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1NetworkPolicyList.cs b/src/generated/Models/V1NetworkPolicyList.cs deleted file mode 100644 index aae772a4c..000000000 --- a/src/generated/Models/V1NetworkPolicyList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1NetworkPolicyList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1NetworkPolicyPeer.cs b/src/generated/Models/V1NetworkPolicyPeer.cs deleted file mode 100644 index e51583bd6..000000000 --- a/src/generated/Models/V1NetworkPolicyPeer.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// NetworkPolicyPeer describes a peer to allow traffic from. Exactly one - /// of its fields must be specified. - /// - 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 - /// Selects Namespaces using cluster - /// scoped-labels. This matches all pods in all namespaces selected by - /// this label selector. This field follows standard label selector - /// semantics. If present but empty, this selector selects all - /// namespaces. - /// This is a label selector which selects - /// Pods in this namespace. This field follows standard label selector - /// semantics. If present but empty, this selector selects all pods in - /// this namespace. - public V1NetworkPolicyPeer(V1IPBlock ipBlock = default(V1IPBlock), V1LabelSelector namespaceSelector = default(V1LabelSelector), V1LabelSelector podSelector = default(V1LabelSelector)) - { - IpBlock = ipBlock; - NamespaceSelector = namespaceSelector; - PodSelector = podSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets iPBlock defines policy on a particular IPBlock - /// - [JsonProperty(PropertyName = "ipBlock")] - public V1IPBlock IpBlock { get; set; } - - /// - /// Gets or sets selects Namespaces using cluster scoped-labels. This - /// matches all pods in all namespaces selected by this label selector. - /// This field follows standard label selector semantics. If present - /// but empty, this selector selects all namespaces. - /// - [JsonProperty(PropertyName = "namespaceSelector")] - public V1LabelSelector NamespaceSelector { get; set; } - - /// - /// Gets or sets this is a label selector which selects Pods in this - /// namespace. This field follows standard label selector semantics. If - /// present but empty, this selector selects all pods in this - /// namespace. - /// - [JsonProperty(PropertyName = "podSelector")] - public V1LabelSelector PodSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (IpBlock != null) - { - IpBlock.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1NetworkPolicyPort.cs b/src/generated/Models/V1NetworkPolicyPort.cs deleted file mode 100644 index 7f4dc1d1a..000000000 --- a/src/generated/Models/V1NetworkPolicyPort.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// - /// 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. - /// The protocol (TCP or UDP) which traffic must - /// match. If not specified, this field defaults to TCP. - public V1NetworkPolicyPort(IntstrIntOrString port = default(IntstrIntOrString), string protocol = default(string)) - { - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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. - /// - [JsonProperty(PropertyName = "port")] - public IntstrIntOrString Port { get; set; } - - /// - /// Gets or sets the protocol (TCP or UDP) which traffic must match. If - /// not specified, this field defaults to TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - } -} diff --git a/src/generated/Models/V1NetworkPolicySpec.cs b/src/generated/Models/V1NetworkPolicySpec.cs deleted file mode 100644 index 770f0fe5b..000000000 --- a/src/generated/Models/V1NetworkPolicySpec.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IList ingress = default(IList), IList policyTypes = default(IList)) - { - Egress = egress; - Ingress = ingress; - PodSelector = podSelector; - PolicyTypes = policyTypes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - } - } -} diff --git a/src/generated/Models/V1Node.cs b/src/generated/Models/V1Node.cs deleted file mode 100644 index 64ae0587a..000000000 --- a/src/generated/Models/V1Node.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Spec defines the behavior of a node. - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1Node(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1NodeSpec spec = default(V1NodeSpec), V1NodeStatus status = default(V1NodeStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the behavior of a node. - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1NodeSpec Spec { get; set; } - - /// - /// Gets or sets most recently observed status of the node. Populated - /// by the system. Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1NodeAddress.cs b/src/generated/Models/V1NodeAddress.cs deleted file mode 100644 index c110a5d96..000000000 --- a/src/generated/Models/V1NodeAddress.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets the node address. - /// - [JsonProperty(PropertyName = "address")] - public string Address { get; set; } - - /// - /// Gets or sets 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() - { - if (Address == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Address"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1NodeAffinity.cs b/src/generated/Models/V1NodeAffinity.cs deleted file mode 100644 index 5feb99f6b..000000000 --- a/src/generated/Models/V1NodeAffinity.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution = default(V1NodeSelector)) - { - PreferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - RequiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 element in PreferredDuringSchedulingIgnoredDuringExecution) - { - if (element != null) - { - element.Validate(); - } - } - } - if (RequiredDuringSchedulingIgnoredDuringExecution != null) - { - RequiredDuringSchedulingIgnoredDuringExecution.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1NodeCondition.cs b/src/generated/Models/V1NodeCondition.cs deleted file mode 100644 index 8eca7807d..000000000 --- a/src/generated/Models/V1NodeCondition.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(System.DateTime?), System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time we got an update on a given condition. - /// - [JsonProperty(PropertyName = "lastHeartbeatTime")] - public System.DateTime? LastHeartbeatTime { get; set; } - - /// - /// Gets or sets last time the condition transit from one status to - /// another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets human readable message indicating details about last - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets (brief) reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of node condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1NodeConfigSource.cs b/src/generated/Models/V1NodeConfigSource.cs deleted file mode 100644 index b1cb4f85e..000000000 --- a/src/generated/Models/V1NodeConfigSource.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// NodeConfigSource specifies a source of node configuration. Exactly one - /// subfield (excluding metadata) must be non-nil. - /// - public partial class V1NodeConfigSource - { - /// - /// Initializes a new instance of the V1NodeConfigSource class. - /// - public V1NodeConfigSource() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeConfigSource 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/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/api-conventions.md#types-kinds - public V1NodeConfigSource(string apiVersion = default(string), V1ObjectReference configMapRef = default(V1ObjectReference), string kind = default(string)) - { - ApiVersion = apiVersion; - ConfigMapRef = configMapRef; - Kind = kind; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// - [JsonProperty(PropertyName = "configMapRef")] - public V1ObjectReference ConfigMapRef { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - } -} diff --git a/src/generated/Models/V1NodeDaemonEndpoints.cs b/src/generated/Models/V1NodeDaemonEndpoints.cs deleted file mode 100644 index e777fd23b..000000000 --- a/src/generated/Models/V1NodeDaemonEndpoints.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(V1DaemonEndpoint)) - { - KubeletEndpoint = kubeletEndpoint; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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() - { - if (KubeletEndpoint != null) - { - KubeletEndpoint.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1NodeList.cs b/src/generated/Models/V1NodeList.cs deleted file mode 100644 index cbde4ac9f..000000000 --- a/src/generated/Models/V1NodeList.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1NodeList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of nodes - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1NodeSelector.cs b/src/generated/Models/V1NodeSelector.cs deleted file mode 100644 index fcf3a9563..000000000 --- a/src/generated/Models/V1NodeSelector.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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(); - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "NodeSelectorTerms"); - } - if (NodeSelectorTerms != null) - { - foreach (var element in NodeSelectorTerms) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1NodeSelectorRequirement.cs b/src/generated/Models/V1NodeSelectorRequirement.cs deleted file mode 100644 index 265295a38..000000000 --- a/src/generated/Models/V1NodeSelectorRequirement.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList)) - { - Key = key; - OperatorProperty = operatorProperty; - Values = values; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the label key that the selector applies to. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Key == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Key"); - } - if (OperatorProperty == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "OperatorProperty"); - } - } - } -} diff --git a/src/generated/Models/V1NodeSelectorTerm.cs b/src/generated/Models/V1NodeSelectorTerm.cs deleted file mode 100644 index 6c4589130..000000000 --- a/src/generated/Models/V1NodeSelectorTerm.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A null or empty node selector term matches no objects. - /// - public partial class V1NodeSelectorTerm - { - /// - /// Initializes a new instance of the V1NodeSelectorTerm class. - /// - public V1NodeSelectorTerm() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1NodeSelectorTerm class. - /// - /// Required. A list of node selector - /// requirements. The requirements are ANDed. - public V1NodeSelectorTerm(IList matchExpressions) - { - MatchExpressions = matchExpressions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets required. A list of node selector requirements. The - /// requirements are ANDed. - /// - [JsonProperty(PropertyName = "matchExpressions")] - public IList MatchExpressions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MatchExpressions == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MatchExpressions"); - } - if (MatchExpressions != null) - { - foreach (var element in MatchExpressions) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1NodeSpec.cs b/src/generated/Models/V1NodeSpec.cs deleted file mode 100644 index 763fb4811..000000000 --- a/src/generated/Models/V1NodeSpec.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// If specified, the source to get node - /// configuration from The DynamicKubeletConfig feature gate must be - /// enabled for the Kubelet to use this field - /// External ID of the node assigned by some - /// machine database (e.g. a cloud provider). Deprecated. - /// PodCIDR represents the pod IP range assigned - /// to the node. - /// 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 = default(V1NodeConfigSource), string externalID = default(string), string podCIDR = default(string), string providerID = default(string), IList taints = default(IList), bool? unschedulable = default(bool?)) - { - ConfigSource = configSource; - ExternalID = externalID; - PodCIDR = podCIDR; - ProviderID = providerID; - Taints = taints; - Unschedulable = unschedulable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets if specified, the source to get node configuration - /// from The DynamicKubeletConfig feature gate must be enabled for the - /// Kubelet to use this field - /// - [JsonProperty(PropertyName = "configSource")] - public V1NodeConfigSource ConfigSource { get; set; } - - /// - /// Gets or sets external ID of the node assigned by some machine - /// database (e.g. a cloud provider). Deprecated. - /// - [JsonProperty(PropertyName = "externalID")] - public string ExternalID { get; set; } - - /// - /// Gets or sets podCIDR represents the pod IP range assigned to the - /// node. - /// - [JsonProperty(PropertyName = "podCIDR")] - public string PodCIDR { get; set; } - - /// - /// Gets or sets ID of the node assigned by the cloud provider in the - /// format: - /// &lt;ProviderName&gt;://&lt;ProviderSpecificNodeID&gt; - /// - [JsonProperty(PropertyName = "providerID")] - public string ProviderID { get; set; } - - /// - /// Gets or sets if specified, the node's taints. - /// - [JsonProperty(PropertyName = "taints")] - public IList Taints { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1NodeStatus.cs b/src/generated/Models/V1NodeStatus.cs deleted file mode 100644 index 959320350..000000000 --- a/src/generated/Models/V1NodeStatus.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 - /// 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 - /// 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 = default(IList), IDictionary allocatable = default(IDictionary), IDictionary capacity = default(IDictionary), IList conditions = default(IList), V1NodeDaemonEndpoints daemonEndpoints = default(V1NodeDaemonEndpoints), IList images = default(IList), V1NodeSystemInfo nodeInfo = default(V1NodeSystemInfo), string phase = default(string), IList volumesAttached = default(IList), IList volumesInUse = default(IList)) - { - Addresses = addresses; - Allocatable = allocatable; - Capacity = capacity; - Conditions = conditions; - 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(); - - /// - /// Gets or sets list of addresses reachable to the node. Queried from - /// cloud provider, if available. More info: - /// https://kubernetes.io/docs/concepts/nodes/node/#addresses - /// - [JsonProperty(PropertyName = "addresses")] - public IList Addresses { get; set; } - - /// - /// Gets or sets allocatable represents the resources of a node that - /// are available for scheduling. Defaults to Capacity. - /// - [JsonProperty(PropertyName = "allocatable")] - public IDictionary Allocatable { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets endpoints of daemons running on the Node. - /// - [JsonProperty(PropertyName = "daemonEndpoints")] - public V1NodeDaemonEndpoints DaemonEndpoints { get; set; } - - /// - /// Gets or sets list of container images on this node - /// - [JsonProperty(PropertyName = "images")] - public IList Images { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets list of volumes that are attached to the node. - /// - [JsonProperty(PropertyName = "volumesAttached")] - public IList VolumesAttached { get; set; } - - /// - /// Gets or sets 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 element in Addresses) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Conditions != null) - { - foreach (var element1 in Conditions) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - if (DaemonEndpoints != null) - { - DaemonEndpoints.Validate(); - } - if (Images != null) - { - foreach (var element2 in Images) - { - if (element2 != null) - { - element2.Validate(); - } - } - } - if (NodeInfo != null) - { - NodeInfo.Validate(); - } - if (VolumesAttached != null) - { - foreach (var element3 in VolumesAttached) - { - if (element3 != null) - { - element3.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1NodeSystemInfo.cs b/src/generated/Models/V1NodeSystemInfo.cs deleted file mode 100644 index 0dcb6852e..000000000 --- a/src/generated/Models/V1NodeSystemInfo.cs +++ /dev/null @@ -1,192 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/getting-system-uuid.html - 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(); - - /// - /// Gets or sets the Architecture reported by the node - /// - [JsonProperty(PropertyName = "architecture")] - public string Architecture { get; set; } - - /// - /// Gets or sets boot ID reported by the node. - /// - [JsonProperty(PropertyName = "bootID")] - public string BootID { get; set; } - - /// - /// Gets or sets containerRuntime Version reported by the node through - /// runtime remote API (e.g. docker://1.5.0). - /// - [JsonProperty(PropertyName = "containerRuntimeVersion")] - public string ContainerRuntimeVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kubeProxy Version reported by the node. - /// - [JsonProperty(PropertyName = "kubeProxyVersion")] - public string KubeProxyVersion { get; set; } - - /// - /// Gets or sets kubelet Version reported by the node. - /// - [JsonProperty(PropertyName = "kubeletVersion")] - public string KubeletVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the Operating System reported by the node - /// - [JsonProperty(PropertyName = "operatingSystem")] - public string OperatingSystem { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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/getting-system-uuid.html - /// - [JsonProperty(PropertyName = "systemUUID")] - public string SystemUUID { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Architecture == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Architecture"); - } - if (BootID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "BootID"); - } - if (ContainerRuntimeVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ContainerRuntimeVersion"); - } - if (KernelVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "KernelVersion"); - } - if (KubeProxyVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "KubeProxyVersion"); - } - if (KubeletVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "KubeletVersion"); - } - if (MachineID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MachineID"); - } - if (OperatingSystem == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "OperatingSystem"); - } - if (OsImage == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "OsImage"); - } - if (SystemUUID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SystemUUID"); - } - } - } -} diff --git a/src/generated/Models/V1NonResourceAttributes.cs b/src/generated/Models/V1NonResourceAttributes.cs deleted file mode 100644 index 775a05408..000000000 --- a/src/generated/Models/V1NonResourceAttributes.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string verb = default(string)) - { - Path = path; - Verb = verb; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets path is the URL path of the request - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets verb is the standard HTTP verb - /// - [JsonProperty(PropertyName = "verb")] - public string Verb { get; set; } - - } -} diff --git a/src/generated/Models/V1NonResourceRule.cs b/src/generated/Models/V1NonResourceRule.cs deleted file mode 100644 index 6200f6c55..000000000 --- a/src/generated/Models/V1NonResourceRule.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList)) - { - NonResourceURLs = nonResourceURLs; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1ObjectFieldSelector.cs b/src/generated/Models/V1ObjectFieldSelector.cs deleted file mode 100644 index 05977ad10..000000000 --- a/src/generated/Models/V1ObjectFieldSelector.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string)) - { - ApiVersion = apiVersion; - FieldPath = fieldPath; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets version of the schema the FieldPath is written in - /// terms of, defaults to "v1". - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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() - { - if (FieldPath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "FieldPath"); - } - } - } -} diff --git a/src/generated/Models/V1ObjectMeta.cs b/src/generated/Models/V1ObjectMeta.cs deleted file mode 100644 index eae6b8281..000000000 --- a/src/generated/Models/V1ObjectMeta.cs +++ /dev/null @@ -1,408 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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 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/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. - /// 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/api-conventions.md#idempotency - /// A sequence number representing a specific - /// generation of the desired state. Populated by the system. - /// Read-only. - /// An initializer is a controller which - /// enforces some system invariant at object creation time. This field - /// is a list of initializers that have not yet acted on this object. - /// If nil or empty, this object has been completely initialized. - /// Otherwise, the object is considered uninitialized and is hidden (in - /// list/watch and get calls) from clients that haven't explicitly - /// asked to observe uninitialized objects. - /// - /// When an object is created, the system will populate this list with - /// the current set of initializers. Only privileged users may set or - /// modify this list. Once it is empty, it may not be modified further - /// by any user. - /// 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 - /// 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 - /// 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/api-conventions.md#concurrency-control-and-consistency - /// SelfLink is a URL representing this object. - /// Populated by the system. Read-only. - /// 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 = default(IDictionary), string clusterName = default(string), System.DateTime? creationTimestamp = default(System.DateTime?), long? deletionGracePeriodSeconds = default(long?), System.DateTime? deletionTimestamp = default(System.DateTime?), IList finalizers = default(IList), string generateName = default(string), long? generation = default(long?), V1Initializers initializers = default(V1Initializers), IDictionary labels = default(IDictionary), string name = default(string), string namespaceProperty = default(string), IList ownerReferences = default(IList), string resourceVersion = default(string), string selfLink = default(string), string uid = default(string)) - { - Annotations = annotations; - ClusterName = clusterName; - CreationTimestamp = creationTimestamp; - DeletionGracePeriodSeconds = deletionGracePeriodSeconds; - DeletionTimestamp = deletionTimestamp; - Finalizers = finalizers; - GenerateName = generateName; - Generation = generation; - Initializers = initializers; - Labels = labels; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "creationTimestamp")] - public System.DateTime? CreationTimestamp { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 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/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "deletionTimestamp")] - public System.DateTime? DeletionTimestamp { get; set; } - - /// - /// Gets or sets 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. - /// - [JsonProperty(PropertyName = "finalizers")] - public IList Finalizers { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#idempotency - /// - [JsonProperty(PropertyName = "generateName")] - public string GenerateName { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets an initializer is a controller which enforces some - /// system invariant at object creation time. This field is a list of - /// initializers that have not yet acted on this object. If nil or - /// empty, this object has been completely initialized. Otherwise, the - /// object is considered uninitialized and is hidden (in list/watch and - /// get calls) from clients that haven't explicitly asked to observe - /// uninitialized objects. - /// - /// When an object is created, the system will populate this list with - /// the current set of initializers. Only privileged users may set or - /// modify this list. Once it is empty, it may not be modified further - /// by any user. - /// - [JsonProperty(PropertyName = "initializers")] - public V1Initializers Initializers { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets namespace defines the space within 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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/api-conventions.md#concurrency-control-and-consistency - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// Gets or sets selfLink is a URL representing this object. Populated - /// by the system. Read-only. - /// - [JsonProperty(PropertyName = "selfLink")] - public string SelfLink { get; set; } - - /// - /// Gets or sets 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 (Initializers != null) - { - Initializers.Validate(); - } - if (OwnerReferences != null) - { - foreach (var element in OwnerReferences) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ObjectReference.cs b/src/generated/Models/V1ObjectReference.cs deleted file mode 100644 index adb31f588..000000000 --- a/src/generated/Models/V1ObjectReference.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/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 = default(string), string fieldPath = default(string), string kind = default(string), string name = default(string), string namespaceProperty = default(string), string resourceVersion = default(string), string uid = default(string)) - { - 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(); - - /// - /// Gets or sets API version of the referent. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kind of the referent. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets namespace of the referent. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Gets or sets specific resourceVersion to which this reference is - /// made, if any. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency - /// - [JsonProperty(PropertyName = "resourceVersion")] - public string ResourceVersion { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1OwnerReference.cs b/src/generated/Models/V1OwnerReference.cs deleted file mode 100644 index 34016713f..000000000 --- a/src/generated/Models/V1OwnerReference.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// OwnerReference contains enough information to let you identify an - /// owning object. Currently, an owning object must be in the same - /// namespace, 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/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 = default(bool?), bool? controller = default(bool?)) - { - 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(); - - /// - /// Gets or sets API version of the referent. - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets if true, this reference points to the managing - /// controller. - /// - [JsonProperty(PropertyName = "controller")] - public bool? Controller { get; set; } - - /// - /// Gets or sets kind of the referent. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets name of the referent. More info: - /// http://kubernetes.io/docs/user-guide/identifiers#names - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets 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() - { - if (ApiVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ApiVersion"); - } - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (Uid == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Uid"); - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolume.cs b/src/generated/Models/V1PersistentVolume.cs deleted file mode 100644 index cb5af1aa6..000000000 --- a/src/generated/Models/V1PersistentVolume.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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 = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1PersistentVolumeSpec spec = default(V1PersistentVolumeSpec), V1PersistentVolumeStatus status = default(V1PersistentVolumeStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeClaim.cs b/src/generated/Models/V1PersistentVolumeClaim.cs deleted file mode 100644 index c536167b9..000000000 --- a/src/generated/Models/V1PersistentVolumeClaim.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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 = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1PersistentVolumeClaimSpec spec = default(V1PersistentVolumeClaimSpec), V1PersistentVolumeClaimStatus status = default(V1PersistentVolumeClaimStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeClaimCondition.cs b/src/generated/Models/V1PersistentVolumeClaimCondition.cs deleted file mode 100644 index b0f396804..000000000 --- a/src/generated/Models/V1PersistentVolumeClaimCondition.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(System.DateTime?), System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time we probed the condition. - /// - [JsonProperty(PropertyName = "lastProbeTime")] - public System.DateTime? LastProbeTime { get; set; } - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets human-readable message indicating details about last - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets 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() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeClaimList.cs b/src/generated/Models/V1PersistentVolumeClaimList.cs deleted file mode 100644 index 2874e386b..000000000 --- a/src/generated/Models/V1PersistentVolumeClaimList.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1PersistentVolumeClaimList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeClaimSpec.cs b/src/generated/Models/V1PersistentVolumeClaimSpec.cs deleted file mode 100644 index f11489604..000000000 --- a/src/generated/Models/V1PersistentVolumeClaimSpec.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 - /// 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 - /// VolumeName is the binding reference to the - /// PersistentVolume backing this claim. - public V1PersistentVolumeClaimSpec(IList accessModes = default(IList), V1ResourceRequirements resources = default(V1ResourceRequirements), V1LabelSelector selector = default(V1LabelSelector), string storageClassName = default(string), string volumeName = default(string)) - { - AccessModes = accessModes; - Resources = resources; - Selector = selector; - StorageClassName = storageClassName; - VolumeName = volumeName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets a label query over volumes to consider for binding. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets volumeName is the binding reference to the - /// PersistentVolume backing this claim. - /// - [JsonProperty(PropertyName = "volumeName")] - public string VolumeName { get; set; } - - } -} diff --git a/src/generated/Models/V1PersistentVolumeClaimStatus.cs b/src/generated/Models/V1PersistentVolumeClaimStatus.cs deleted file mode 100644 index ab222db3d..000000000 --- a/src/generated/Models/V1PersistentVolumeClaimStatus.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IDictionary capacity = default(IDictionary), IList conditions = default(IList), string phase = default(string)) - { - AccessModes = accessModes; - Capacity = capacity; - Conditions = conditions; - Phase = phase; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets represents the actual resources of the underlying - /// volume. - /// - [JsonProperty(PropertyName = "capacity")] - public IDictionary Capacity { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets phase represents the current phase of - /// PersistentVolumeClaim. - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - } -} diff --git a/src/generated/Models/V1PersistentVolumeClaimVolumeSource.cs b/src/generated/Models/V1PersistentVolumeClaimVolumeSource.cs deleted file mode 100644 index 6e37b0574..000000000 --- a/src/generated/Models/V1PersistentVolumeClaimVolumeSource.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(bool?)) - { - ClaimName = claimName; - ReadOnlyProperty = readOnlyProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (ClaimName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClaimName"); - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeList.cs b/src/generated/Models/V1PersistentVolumeList.cs deleted file mode 100644 index f8dd64d53..000000000 --- a/src/generated/Models/V1PersistentVolumeList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1PersistentVolumeList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of persistent volumes. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeSpec.cs b/src/generated/Models/V1PersistentVolumeSpec.cs deleted file mode 100644 index debe41c7b..000000000 --- a/src/generated/Models/V1PersistentVolumeSpec.cs +++ /dev/null @@ -1,451 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://releases.k8s.io/HEAD/examples/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 - /// 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. - /// This is an alpha feature and may change in future. - /// 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://releases.k8s.io/HEAD/examples/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 - /// What happens to a - /// persistent volume when released from its claim. Valid options are - /// Retain (default) and Recycle. Recycling must be supported by the - /// volume plugin underlying this persistent volume. 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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/storageos/README.md - /// VsphereVolume represents a vSphere - /// volume attached and mounted on kubelets host machine - public V1PersistentVolumeSpec(IList accessModes = default(IList), V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFilePersistentVolumeSource azureFile = default(V1AzureFilePersistentVolumeSource), IDictionary capacity = default(IDictionary), V1CephFSPersistentVolumeSource cephfs = default(V1CephFSPersistentVolumeSource), V1CinderVolumeSource cinder = default(V1CinderVolumeSource), V1ObjectReference claimRef = default(V1ObjectReference), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexVolumeSource flexVolume = default(V1FlexVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIVolumeSource iscsi = default(V1ISCSIVolumeSource), V1LocalVolumeSource local = default(V1LocalVolumeSource), IList mountOptions = default(IList), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), string persistentVolumeReclaimPolicy = default(string), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDVolumeSource rbd = default(V1RBDVolumeSource), V1ScaleIOPersistentVolumeSource scaleIO = default(V1ScaleIOPersistentVolumeSource), string storageClassName = default(string), V1StorageOSPersistentVolumeSource storageos = default(V1StorageOSPersistentVolumeSource), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource)) - { - AccessModes = accessModes; - AwsElasticBlockStore = awsElasticBlockStore; - AzureDisk = azureDisk; - AzureFile = azureFile; - Capacity = capacity; - Cephfs = cephfs; - Cinder = cinder; - ClaimRef = claimRef; - Fc = fc; - FlexVolume = flexVolume; - Flocker = flocker; - GcePersistentDisk = gcePersistentDisk; - Glusterfs = glusterfs; - HostPath = hostPath; - Iscsi = iscsi; - Local = local; - MountOptions = mountOptions; - Nfs = nfs; - PersistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; - PhotonPersistentDisk = photonPersistentDisk; - PortworxVolume = portworxVolume; - Quobyte = quobyte; - Rbd = rbd; - ScaleIO = scaleIO; - StorageClassName = storageClassName; - Storageos = storageos; - VsphereVolume = vsphereVolume; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets azureDisk represents an Azure Data Disk mount on the - /// host and bind mount to the pod. - /// - [JsonProperty(PropertyName = "azureDisk")] - public V1AzureDiskVolumeSource AzureDisk { get; set; } - - /// - /// Gets or sets azureFile represents an Azure File Service mount on - /// the host and bind mount to the pod. - /// - [JsonProperty(PropertyName = "azureFile")] - public V1AzureFilePersistentVolumeSource AzureFile { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets cephFS represents a Ceph FS mount on the host that - /// shares a pod's lifetime - /// - [JsonProperty(PropertyName = "cephfs")] - public V1CephFSPersistentVolumeSource Cephfs { get; set; } - - /// - /// Gets or sets cinder represents a cinder volume attached and mounted - /// on kubelets host machine More info: - /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "cinder")] - public V1CinderVolumeSource Cinder { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets flexVolume represents a generic volume resource that - /// is provisioned/attached using an exec based plugin. This is an - /// alpha feature and may change in future. - /// - [JsonProperty(PropertyName = "flexVolume")] - public V1FlexVolumeSource FlexVolume { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets glusterfs represents a Glusterfs volume that is - /// attached to a host and exposed to the pod. Provisioned by an admin. - /// More info: - /// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md - /// - [JsonProperty(PropertyName = "glusterfs")] - public V1GlusterfsVolumeSource Glusterfs { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 V1ISCSIVolumeSource Iscsi { get; set; } - - /// - /// Gets or sets local represents directly-attached storage with node - /// affinity - /// - [JsonProperty(PropertyName = "local")] - public V1LocalVolumeSource Local { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets what happens to a persistent volume when released from - /// its claim. Valid options are Retain (default) and Recycle. - /// Recycling must be supported by the volume plugin underlying this - /// persistent volume. More info: - /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - /// - [JsonProperty(PropertyName = "persistentVolumeReclaimPolicy")] - public string PersistentVolumeReclaimPolicy { get; set; } - - /// - /// Gets or sets photonPersistentDisk represents a PhotonController - /// persistent disk attached and mounted on kubelets host machine - /// - [JsonProperty(PropertyName = "photonPersistentDisk")] - public V1PhotonPersistentDiskVolumeSource PhotonPersistentDisk { get; set; } - - /// - /// Gets or sets portworxVolume represents a portworx volume attached - /// and mounted on kubelets host machine - /// - [JsonProperty(PropertyName = "portworxVolume")] - public V1PortworxVolumeSource PortworxVolume { get; set; } - - /// - /// Gets or sets quobyte represents a Quobyte mount on the host that - /// shares a pod's lifetime - /// - [JsonProperty(PropertyName = "quobyte")] - public V1QuobyteVolumeSource Quobyte { get; set; } - - /// - /// Gets or sets RBD represents a Rados Block Device mount on the host - /// that shares a pod's lifetime. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md - /// - [JsonProperty(PropertyName = "rbd")] - public V1RBDVolumeSource Rbd { get; set; } - - /// - /// Gets or sets scaleIO represents a ScaleIO persistent volume - /// attached and mounted on Kubernetes nodes. - /// - [JsonProperty(PropertyName = "scaleIO")] - public V1ScaleIOPersistentVolumeSource ScaleIO { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets storageOS represents a StorageOS volume that is - /// attached to the kubelet's host machine and mounted into the pod - /// More info: - /// https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md - /// - [JsonProperty(PropertyName = "storageos")] - public V1StorageOSPersistentVolumeSource Storageos { get; set; } - - /// - /// Gets or sets 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() - { - if (AwsElasticBlockStore != null) - { - AwsElasticBlockStore.Validate(); - } - if (AzureDisk != null) - { - AzureDisk.Validate(); - } - if (AzureFile != null) - { - AzureFile.Validate(); - } - if (Cephfs != null) - { - Cephfs.Validate(); - } - if (Cinder != null) - { - Cinder.Validate(); - } - if (FlexVolume != null) - { - FlexVolume.Validate(); - } - if (GcePersistentDisk != null) - { - GcePersistentDisk.Validate(); - } - if (Glusterfs != null) - { - Glusterfs.Validate(); - } - if (HostPath != null) - { - HostPath.Validate(); - } - if (Iscsi != null) - { - Iscsi.Validate(); - } - if (Local != null) - { - Local.Validate(); - } - if (Nfs != null) - { - Nfs.Validate(); - } - if (PhotonPersistentDisk != null) - { - PhotonPersistentDisk.Validate(); - } - if (PortworxVolume != null) - { - PortworxVolume.Validate(); - } - if (Quobyte != null) - { - Quobyte.Validate(); - } - if (Rbd != null) - { - Rbd.Validate(); - } - if (ScaleIO != null) - { - ScaleIO.Validate(); - } - if (VsphereVolume != null) - { - VsphereVolume.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1PersistentVolumeStatus.cs b/src/generated/Models/V1PersistentVolumeStatus.cs deleted file mode 100644 index 160226a3b..000000000 --- a/src/generated/Models/V1PersistentVolumeStatus.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string phase = default(string), string reason = default(string)) - { - Message = message; - Phase = phase; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a human-readable message indicating details about why - /// the volume is in this state. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1PhotonPersistentDiskVolumeSource.cs b/src/generated/Models/V1PhotonPersistentDiskVolumeSource.cs deleted file mode 100644 index fdf06155e..000000000 --- a/src/generated/Models/V1PhotonPersistentDiskVolumeSource.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string)) - { - FsType = fsType; - PdID = pdID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (PdID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PdID"); - } - } - } -} diff --git a/src/generated/Models/V1Pod.cs b/src/generated/Models/V1Pod.cs deleted file mode 100644 index 7d6920751..000000000 --- a/src/generated/Models/V1Pod.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Specification of the desired behavior of the - /// pod. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1Pod(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1PodSpec spec = default(V1PodSpec), V1PodStatus status = default(V1PodStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the pod. More - /// info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1PodSpec Spec { get; set; } - - /// - /// Gets or sets 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/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1PodAffinity.cs b/src/generated/Models/V1PodAffinity.cs deleted file mode 100644 index 36625bda7..000000000 --- a/src/generated/Models/V1PodAffinity.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IList requiredDuringSchedulingIgnoredDuringExecution = default(IList)) - { - PreferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - RequiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1PodAffinityTerm.cs b/src/generated/Models/V1PodAffinityTerm.cs deleted file mode 100644 index fc8835d0d..000000000 --- a/src/generated/Models/V1PodAffinityTerm.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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> tches 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. - /// - /// A label query over a set of resources, - /// in this case pods. - /// namespaces specifies which namespaces the - /// labelSelector applies to (matches against); null or empty list - /// means "this pod's namespace" - /// 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. For PreferredDuringScheduling pod anti-affinity, - /// empty topologyKey is interpreted as "all topologies" ("all - /// topologies" here means all the topologyKeys indicated by scheduler - /// command-line argument --failure-domains); for affinity and for - /// RequiredDuringScheduling pod anti-affinity, empty topologyKey is - /// not allowed. - public V1PodAffinityTerm(V1LabelSelector labelSelector = default(V1LabelSelector), IList namespaces = default(IList), string topologyKey = default(string)) - { - LabelSelector = labelSelector; - Namespaces = namespaces; - TopologyKey = topologyKey; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a label query over a set of resources, in this case - /// pods. - /// - [JsonProperty(PropertyName = "labelSelector")] - public V1LabelSelector LabelSelector { get; set; } - - /// - /// Gets or sets namespaces specifies which namespaces the - /// labelSelector applies to (matches against); null or empty list - /// means "this pod's namespace" - /// - [JsonProperty(PropertyName = "namespaces")] - public IList Namespaces { get; set; } - - /// - /// Gets or sets 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. For - /// PreferredDuringScheduling pod anti-affinity, empty topologyKey is - /// interpreted as "all topologies" ("all topologies" here means all - /// the topologyKeys indicated by scheduler command-line argument - /// --failure-domains); for affinity and for RequiredDuringScheduling - /// pod anti-affinity, empty topologyKey is not allowed. - /// - [JsonProperty(PropertyName = "topologyKey")] - public string TopologyKey { get; set; } - - } -} diff --git a/src/generated/Models/V1PodAntiAffinity.cs b/src/generated/Models/V1PodAntiAffinity.cs deleted file mode 100644 index 0e5e8ed90..000000000 --- a/src/generated/Models/V1PodAntiAffinity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), IList requiredDuringSchedulingIgnoredDuringExecution = default(IList)) - { - PreferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - RequiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1PodCondition.cs b/src/generated/Models/V1PodCondition.cs deleted file mode 100644 index 671a7f827..000000000 --- a/src/generated/Models/V1PodCondition.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. Currently - /// only Ready. 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 = default(System.DateTime?), System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time we probed the condition. - /// - [JsonProperty(PropertyName = "lastProbeTime")] - public System.DateTime? LastProbeTime { get; set; } - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets human-readable message indicating details about last - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets unique, one-word, CamelCase reason for the condition's - /// last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets type is the type of the condition. Currently only - /// Ready. 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() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1PodList.cs b/src/generated/Models/V1PodList.cs deleted file mode 100644 index 5aa543db3..000000000 --- a/src/generated/Models/V1PodList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1PodList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of pods. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1PodSecurityContext.cs b/src/generated/Models/V1PodSecurityContext.cs deleted file mode 100644 index 8178850bf..000000000 --- a/src/generated/Models/V1PodSecurityContext.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// 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. - /// 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. - public V1PodSecurityContext(long? fsGroup = default(long?), bool? runAsNonRoot = default(bool?), long? runAsUser = default(long?), V1SELinuxOptions seLinuxOptions = default(V1SELinuxOptions), IList supplementalGroups = default(IList)) - { - FsGroup = fsGroup; - RunAsNonRoot = runAsNonRoot; - RunAsUser = runAsUser; - SeLinuxOptions = seLinuxOptions; - SupplementalGroups = supplementalGroups; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1PodSpec.cs b/src/generated/Models/V1PodSpec.cs deleted file mode 100644 index 8c86dc8ea..000000000 --- a/src/generated/Models/V1PodSpec.cs +++ /dev/null @@ -1,441 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// Set DNS policy for containers within the - /// pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. - /// Defaults to "ClusterFirst". To have DNS options set along with - /// hostNetwork, you have to specify DNS policy explicitly to - /// 'ClusterFirstWithHostNet'. - /// 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, or Liveness 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/ - /// 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" is a special keyword which indicates 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. - /// 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 - /// 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 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 delete immediately. 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. - /// 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 = default(long?), V1Affinity affinity = default(V1Affinity), bool? automountServiceAccountToken = default(bool?), string dnsPolicy = default(string), IList hostAliases = default(IList), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), string hostname = default(string), IList imagePullSecrets = default(IList), IList initContainers = default(IList), string nodeName = default(string), IDictionary nodeSelector = default(IDictionary), int? priority = default(int?), string priorityClassName = default(string), string restartPolicy = default(string), string schedulerName = default(string), V1PodSecurityContext securityContext = default(V1PodSecurityContext), string serviceAccount = default(string), string serviceAccountName = default(string), string subdomain = default(string), long? terminationGracePeriodSeconds = default(long?), IList tolerations = default(IList), IList volumes = default(IList)) - { - ActiveDeadlineSeconds = activeDeadlineSeconds; - Affinity = affinity; - AutomountServiceAccountToken = automountServiceAccountToken; - Containers = containers; - DnsPolicy = dnsPolicy; - HostAliases = hostAliases; - HostIPC = hostIPC; - HostNetwork = hostNetwork; - HostPID = hostPID; - Hostname = hostname; - ImagePullSecrets = imagePullSecrets; - InitContainers = initContainers; - NodeName = nodeName; - NodeSelector = nodeSelector; - Priority = priority; - PriorityClassName = priorityClassName; - RestartPolicy = restartPolicy; - SchedulerName = schedulerName; - SecurityContext = securityContext; - ServiceAccount = serviceAccount; - ServiceAccountName = serviceAccountName; - Subdomain = subdomain; - TerminationGracePeriodSeconds = terminationGracePeriodSeconds; - Tolerations = tolerations; - Volumes = volumes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets if specified, the pod's scheduling constraints - /// - [JsonProperty(PropertyName = "affinity")] - public V1Affinity Affinity { get; set; } - - /// - /// Gets or sets automountServiceAccountToken indicates whether a - /// service account token should be automatically mounted. - /// - [JsonProperty(PropertyName = "automountServiceAccountToken")] - public bool? AutomountServiceAccountToken { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets set DNS policy for containers within the pod. One of - /// 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to - /// "ClusterFirst". 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets use the host's ipc namespace. Optional: Default to - /// false. - /// - [JsonProperty(PropertyName = "hostIPC")] - public bool? HostIPC { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets use the host's pid namespace. Optional: Default to - /// false. - /// - [JsonProperty(PropertyName = "hostPID")] - public bool? HostPID { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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, or Liveness 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets if specified, indicates the pod's priority. "SYSTEM" - /// is a special keyword which indicates 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets deprecatedServiceAccount is a depreciated alias for - /// ServiceAccountName. Deprecated: Use serviceAccountName instead. - /// - [JsonProperty(PropertyName = "serviceAccount")] - public string ServiceAccount { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets if specified, the fully qualified Pod hostname will be - /// "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod - /// namespace&gt;.svc.&lt;cluster domain&gt;". If not - /// specified, the pod will not have a domainname at all. - /// - [JsonProperty(PropertyName = "subdomain")] - public string Subdomain { get; set; } - - /// - /// Gets or sets 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 delete - /// immediately. 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; } - - /// - /// Gets or sets if specified, the pod's tolerations. - /// - [JsonProperty(PropertyName = "tolerations")] - public IList Tolerations { get; set; } - - /// - /// Gets or sets 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() - { - if (Containers == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Containers"); - } - if (Affinity != null) - { - Affinity.Validate(); - } - if (Containers != null) - { - foreach (var element in Containers) - { - if (element != null) - { - element.Validate(); - } - } - } - if (InitContainers != null) - { - foreach (var element1 in InitContainers) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - if (Volumes != null) - { - foreach (var element2 in Volumes) - { - if (element2 != null) - { - element2.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1PodStatus.cs b/src/generated/Models/V1PodStatus.cs deleted file mode 100644 index 3a85646c6..000000000 --- a/src/generated/Models/V1PodStatus.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// PodStatus represents information about the status of a pod. Status may - /// trail the actual state of a system. - /// - 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 - /// 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. - /// Current condition 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. - /// The Quality of Service (QOS) classification - /// assigned to the pod based on resource requirements See PodQOSClass - /// type for available QOS classes More info: - /// https://github.com/kubernetes/kubernetes/blob/master/docs/design/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 = default(IList), IList containerStatuses = default(IList), string hostIP = default(string), IList initContainerStatuses = default(IList), string message = default(string), string phase = default(string), string podIP = default(string), string qosClass = default(string), string reason = default(string), System.DateTime? startTime = default(System.DateTime?)) - { - Conditions = conditions; - ContainerStatuses = containerStatuses; - HostIP = hostIP; - InitContainerStatuses = initContainerStatuses; - Message = message; - Phase = phase; - PodIP = podIP; - QosClass = qosClass; - Reason = reason; - StartTime = startTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets IP address of the host to which the pod is assigned. - /// Empty if not yet scheduled. - /// - [JsonProperty(PropertyName = "hostIP")] - public string HostIP { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets a human readable message indicating details about why - /// the pod is in this condition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets current condition of the pod. More info: - /// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - /// - [JsonProperty(PropertyName = "phase")] - public string Phase { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the Quality of Service (QOS) classification assigned - /// to the pod based on resource requirements See PodQOSClass type for - /// available QOS classes More info: - /// https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md - /// - [JsonProperty(PropertyName = "qosClass")] - public string QosClass { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1PodTemplate.cs b/src/generated/Models/V1PodTemplate.cs deleted file mode 100644 index f12782172..000000000 --- a/src/generated/Models/V1PodTemplate.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Template defines the pods that will be - /// created from this pod template. - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1PodTemplate(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1PodTemplateSpec template = default(V1PodTemplateSpec)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets template defines the pods that will be created from - /// this pod template. - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1PodTemplateList.cs b/src/generated/Models/V1PodTemplateList.cs deleted file mode 100644 index 10ce27472..000000000 --- a/src/generated/Models/V1PodTemplateList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1PodTemplateList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of pod templates - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1PodTemplateSpec.cs b/src/generated/Models/V1PodTemplateSpec.cs deleted file mode 100644 index 45094a756..000000000 --- a/src/generated/Models/V1PodTemplateSpec.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/api-conventions.md#metadata - /// Specification of the desired behavior of the - /// pod. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1PodTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1PodSpec spec = default(V1PodSpec)) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the pod. More - /// info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1PolicyRule.cs b/src/generated/Models/V1PolicyRule.cs deleted file mode 100644 index 90f299e36..000000000 --- a/src/generated/Models/V1PolicyRule.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// VerbAll represents all kinds. - /// 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. ResourceAll represents all resources. - public V1PolicyRule(IList verbs, IList apiGroups = default(IList), IList nonResourceURLs = default(IList), IList resourceNames = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - NonResourceURLs = nonResourceURLs; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resources is a list of resources this rule applies to. - /// ResourceAll represents all resources. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Gets or sets verbs is a list of Verbs that apply to ALL the - /// ResourceKinds and AttributeRestrictions contained in this rule. - /// VerbAll represents all kinds. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1PortworxVolumeSource.cs b/src/generated/Models/V1PortworxVolumeSource.cs deleted file mode 100644 index 7842d1389..000000000 --- a/src/generated/Models/V1PortworxVolumeSource.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), bool? readOnlyProperty = default(bool?)) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - VolumeID = volumeID; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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() - { - if (VolumeID == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VolumeID"); - } - } - } -} diff --git a/src/generated/Models/V1Preconditions.cs b/src/generated/Models/V1Preconditions.cs deleted file mode 100644 index af51ea076..000000000 --- a/src/generated/Models/V1Preconditions.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 UID. - public V1Preconditions(string uid = default(string)) - { - Uid = uid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets specifies the target UID. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - } -} diff --git a/src/generated/Models/V1PreferredSchedulingTerm.cs b/src/generated/Models/V1PreferredSchedulingTerm.cs deleted file mode 100644 index 39e0213f3..000000000 --- a/src/generated/Models/V1PreferredSchedulingTerm.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets a node selector term, associated with the - /// corresponding weight. - /// - [JsonProperty(PropertyName = "preference")] - public V1NodeSelectorTerm Preference { get; set; } - - /// - /// Gets or sets 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"); - } - if (Preference != null) - { - Preference.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1Probe.cs b/src/generated/Models/V1Probe.cs deleted file mode 100644 index aa99bbcf4..000000000 --- a/src/generated/Models/V1Probe.cs +++ /dev/null @@ -1,146 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. Minimum value is 1. - /// TCPSocket specifies an action involving a - /// TCP port. TCP hooks not yet supported - /// 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 = default(V1ExecAction), int? failureThreshold = default(int?), V1HTTPGetAction httpGet = default(V1HTTPGetAction), int? initialDelaySeconds = default(int?), int? periodSeconds = default(int?), int? successThreshold = default(int?), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction), int? timeoutSeconds = default(int?)) - { - Exec = exec; - FailureThreshold = failureThreshold; - HttpGet = httpGet; - InitialDelaySeconds = initialDelaySeconds; - PeriodSeconds = periodSeconds; - SuccessThreshold = successThreshold; - TcpSocket = tcpSocket; - TimeoutSeconds = timeoutSeconds; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets one and only one of the following should be specified. - /// Exec specifies the action to take. - /// - [JsonProperty(PropertyName = "exec")] - public V1ExecAction Exec { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets hTTPGet specifies the http request to perform. - /// - [JsonProperty(PropertyName = "httpGet")] - public V1HTTPGetAction HttpGet { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets how often (in seconds) to perform the probe. Default - /// to 10 seconds. Minimum value is 1. - /// - [JsonProperty(PropertyName = "periodSeconds")] - public int? PeriodSeconds { get; set; } - - /// - /// Gets or sets minimum consecutive successes for the probe to be - /// considered successful after having failed. Defaults to 1. Must be 1 - /// for liveness. Minimum value is 1. - /// - [JsonProperty(PropertyName = "successThreshold")] - public int? SuccessThreshold { get; set; } - - /// - /// Gets or sets tCPSocket specifies an action involving a TCP port. - /// TCP hooks not yet supported - /// - [JsonProperty(PropertyName = "tcpSocket")] - public V1TCPSocketAction TcpSocket { get; set; } - - /// - /// Gets or sets 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() - { - if (HttpGet != null) - { - HttpGet.Validate(); - } - if (TcpSocket != null) - { - TcpSocket.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ProjectedVolumeSource.cs b/src/generated/Models/V1ProjectedVolumeSource.cs deleted file mode 100644 index b8d021ada..000000000 --- a/src/generated/Models/V1ProjectedVolumeSource.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// list of volume projections - /// Mode bits to use on created files by - /// default. Must be a value between 0 and 0777. Directories within the - /// path are not affected by this setting. This might be in conflict - /// with other options that affect the file mode, like fsGroup, and the - /// result can be other mode bits set. - public V1ProjectedVolumeSource(IList sources, int? defaultMode = default(int?)) - { - DefaultMode = defaultMode; - Sources = sources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets mode bits to use on created files by default. Must be - /// a value between 0 and 0777. Directories within the path are not - /// affected by this setting. This might be in conflict with other - /// options that affect the file mode, like fsGroup, and the result can - /// be other mode bits set. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Sources"); - } - } - } -} diff --git a/src/generated/Models/V1QuobyteVolumeSource.cs b/src/generated/Models/V1QuobyteVolumeSource.cs deleted file mode 100644 index 65df04eef..000000000 --- a/src/generated/Models/V1QuobyteVolumeSource.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. - /// User to map volume access to Defaults to - /// serivceaccount user - public V1QuobyteVolumeSource(string registry, string volume, string group = default(string), bool? readOnlyProperty = default(bool?), string user = default(string)) - { - Group = group; - ReadOnlyProperty = readOnlyProperty; - Registry = registry; - User = user; - Volume = volume; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets group to map volume access to Default is no group - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets user to map volume access to Defaults to - /// serivceaccount user - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - /// - /// Gets or sets 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() - { - if (Registry == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Registry"); - } - if (Volume == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Volume"); - } - } - } -} diff --git a/src/generated/Models/V1RBDVolumeSource.cs b/src/generated/Models/V1RBDVolumeSource.cs deleted file mode 100644 index 923c26d9a..000000000 --- a/src/generated/Models/V1RBDVolumeSource.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// A collection of Ceph monitors. More info: - /// https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// The rados pool name. Default is rbd. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// ReadOnly here will force the - /// ReadOnly setting in VolumeMounts. Defaults to false. More info: - /// https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// The rados user name. Default is admin. More - /// info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - public V1RBDVolumeSource(string image, IList monitors, string fsType = default(string), string keyring = default(string), string pool = default(string), bool? readOnlyProperty = default(bool?), V1LocalObjectReference secretRef = default(V1LocalObjectReference), string user = default(string)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the rados image name. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// Gets or sets keyring is the path to key ring for RBDUser. Default - /// is /etc/ceph/keyring. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "keyring")] - public string Keyring { get; set; } - - /// - /// Gets or sets a collection of Ceph monitors. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "monitors")] - public IList Monitors { get; set; } - - /// - /// Gets or sets the rados pool name. Default is rbd. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "pool")] - public string Pool { get; set; } - - /// - /// Gets or sets readOnly here will force the ReadOnly setting in - /// VolumeMounts. Defaults to false. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets secretRef is name of the authentication secret for - /// RBDUser. If provided overrides keyring. Default is nil. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it - /// - [JsonProperty(PropertyName = "secretRef")] - public V1LocalObjectReference SecretRef { get; set; } - - /// - /// Gets or sets the rados user name. Default is admin. More info: - /// https://releases.k8s.io/HEAD/examples/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() - { - if (Image == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Image"); - } - if (Monitors == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Monitors"); - } - } - } -} diff --git a/src/generated/Models/V1ReplicationController.cs b/src/generated/Models/V1ReplicationController.cs deleted file mode 100644 index 8fff55ce3..000000000 --- a/src/generated/Models/V1ReplicationController.cs +++ /dev/null @@ -1,135 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/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/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/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/api-conventions.md#spec-and-status - public V1ReplicationController(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1ReplicationControllerSpec spec = default(V1ReplicationControllerSpec), V1ReplicationControllerStatus status = default(V1ReplicationControllerStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the specification of the desired behavior - /// of the replication controller. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ReplicationControllerSpec Spec { get; set; } - - /// - /// Gets or sets 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/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ReplicationControllerCondition.cs b/src/generated/Models/V1ReplicationControllerCondition.cs deleted file mode 100644 index d71015d34..000000000 --- a/src/generated/Models/V1ReplicationControllerCondition.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the last time the condition transitioned from one - /// status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets a human readable message indicating details about the - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of replication controller condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1ReplicationControllerList.cs b/src/generated/Models/V1ReplicationControllerList.cs deleted file mode 100644 index d1d9d6e6e..000000000 --- a/src/generated/Models/V1ReplicationControllerList.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1ReplicationControllerList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of replication controllers. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ReplicationControllerSpec.cs b/src/generated/Models/V1ReplicationControllerSpec.cs deleted file mode 100644 index 43676b57a..000000000 --- a/src/generated/Models/V1ReplicationControllerSpec.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(int?), int? replicas = default(int?), IDictionary selector = default(IDictionary), V1PodTemplateSpec template = default(V1PodTemplateSpec)) - { - MinReadySeconds = minReadySeconds; - Replicas = replicas; - Selector = selector; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ReplicationControllerStatus.cs b/src/generated/Models/V1ReplicationControllerStatus.cs deleted file mode 100644 index 2198b9dfb..000000000 --- a/src/generated/Models/V1ReplicationControllerStatus.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(int?), IList conditions = default(IList), int? fullyLabeledReplicas = default(int?), long? observedGeneration = default(long?), int? readyReplicas = default(int?)) - { - 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(); - - /// - /// Gets or sets the number of available replicas (ready for at least - /// minReadySeconds) for this replication controller. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Gets or sets represents the latest available observations of a - /// replication controller's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets observedGeneration reflects the generation of the most - /// recently observed replication controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets the number of ready replicas for this replication - /// controller. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets 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 element in Conditions) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ResourceAttributes.cs b/src/generated/Models/V1ResourceAttributes.cs deleted file mode 100644 index 56ec9a975..000000000 --- a/src/generated/Models/V1ResourceAttributes.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string name = default(string), string namespaceProperty = default(string), string resource = default(string), string subresource = default(string), string verb = default(string), string version = default(string)) - { - 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(); - - /// - /// Gets or sets group is the API Group of the Resource. "*" means - /// all. - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resource is one of the existing resource types. "*" - /// means all. - /// - [JsonProperty(PropertyName = "resource")] - public string Resource { get; set; } - - /// - /// Gets or sets subresource is one of the existing resource types. "" - /// means none. - /// - [JsonProperty(PropertyName = "subresource")] - public string Subresource { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets version is the API Version of the Resource. "*" means - /// all. - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - } -} diff --git a/src/generated/Models/V1ResourceFieldSelector.cs b/src/generated/Models/V1ResourceFieldSelector.cs deleted file mode 100644 index 812461abe..000000000 --- a/src/generated/Models/V1ResourceFieldSelector.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), ResourceQuantity divisor = default(ResourceQuantity)) - { - ContainerName = containerName; - Divisor = divisor; - Resource = resource; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets container name: required for volumes, optional for env - /// vars - /// - [JsonProperty(PropertyName = "containerName")] - public string ContainerName { get; set; } - - /// - /// Gets or sets specifies the output format of the exposed resources, - /// defaults to "1" - /// - [JsonProperty(PropertyName = "divisor")] - public ResourceQuantity Divisor { get; set; } - - /// - /// Gets or sets required: resource to select - /// - [JsonProperty(PropertyName = "resource")] - public string Resource { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Resource == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Resource"); - } - } - } -} diff --git a/src/generated/Models/V1ResourceQuota.cs b/src/generated/Models/V1ResourceQuota.cs deleted file mode 100644 index 04a63de50..000000000 --- a/src/generated/Models/V1ResourceQuota.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Spec defines the desired quota. - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// Status defines the actual enforced quota and - /// its current usage. - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1ResourceQuota(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1ResourceQuotaSpec spec = default(V1ResourceQuotaSpec), V1ResourceQuotaStatus status = default(V1ResourceQuotaStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the desired quota. - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ResourceQuotaSpec Spec { get; set; } - - /// - /// Gets or sets status defines the actual enforced quota and its - /// current usage. - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ResourceQuotaList.cs b/src/generated/Models/V1ResourceQuotaList.cs deleted file mode 100644 index b00b15036..000000000 --- a/src/generated/Models/V1ResourceQuotaList.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1ResourceQuotaList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ResourceQuota objects. More info: - /// https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ResourceQuotaSpec.cs b/src/generated/Models/V1ResourceQuotaSpec.cs deleted file mode 100644 index f0b5e8c97..000000000 --- a/src/generated/Models/V1ResourceQuotaSpec.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md - /// 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 = default(IDictionary), IList scopes = default(IList)) - { - Hard = hard; - Scopes = scopes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets hard is the set of desired hard limits for each named - /// resource. More info: - /// https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md - /// - [JsonProperty(PropertyName = "hard")] - public IDictionary Hard { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1ResourceQuotaStatus.cs b/src/generated/Models/V1ResourceQuotaStatus.cs deleted file mode 100644 index 9a88000f2..000000000 --- a/src/generated/Models/V1ResourceQuotaStatus.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md - /// Used is the current observed total usage of the - /// resource in the namespace. - public V1ResourceQuotaStatus(IDictionary hard = default(IDictionary), IDictionary used = default(IDictionary)) - { - Hard = hard; - Used = used; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets hard is the set of enforced hard limits for each named - /// resource. More info: - /// https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md - /// - [JsonProperty(PropertyName = "hard")] - public IDictionary Hard { get; set; } - - /// - /// Gets or sets used is the current observed total usage of the - /// resource in the namespace. - /// - [JsonProperty(PropertyName = "used")] - public IDictionary Used { get; set; } - - } -} diff --git a/src/generated/Models/V1ResourceRequirements.cs b/src/generated/Models/V1ResourceRequirements.cs deleted file mode 100644 index 010645a8d..000000000 --- a/src/generated/Models/V1ResourceRequirements.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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-compute-resources-container/ - /// Requests describes the minimum amount of - /// compute resources required. If Requests is omitted for a container, - /// it defaults to Limits if that is explicitly specified, otherwise to - /// an implementation-defined value. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - public V1ResourceRequirements(IDictionary limits = default(IDictionary), IDictionary requests = default(IDictionary)) - { - Limits = limits; - Requests = requests; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets limits describes the maximum amount of compute - /// resources allowed. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - /// - [JsonProperty(PropertyName = "limits")] - public IDictionary Limits { get; set; } - - /// - /// Gets or sets requests describes the minimum amount of compute - /// resources required. If Requests is omitted for a container, it - /// defaults to Limits if that is explicitly specified, otherwise to an - /// implementation-defined value. More info: - /// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - /// - [JsonProperty(PropertyName = "requests")] - public IDictionary Requests { get; set; } - - } -} diff --git a/src/generated/Models/V1ResourceRule.cs b/src/generated/Models/V1ResourceRule.cs deleted file mode 100644 index acd5aef5d..000000000 --- a/src/generated/Models/V1ResourceRule.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. ResourceAll represents all resources. "*" means - /// all. - public V1ResourceRule(IList verbs, IList apiGroups = default(IList), IList resourceNames = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resources is a list of resources this rule applies to. - /// ResourceAll represents all resources. "*" means all. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Gets or sets 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() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1Role.cs b/src/generated/Models/V1Role.cs deleted file mode 100644 index f07adf08c..000000000 --- a/src/generated/Models/V1Role.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// Rules holds all the PolicyRules for this - /// Role - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1Role(IList rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Rules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rules"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1RoleBinding.cs b/src/generated/Models/V1RoleBinding.cs deleted file mode 100644 index 16c68454c..000000000 --- a/src/generated/Models/V1RoleBinding.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// Subjects holds references to the objects the - /// role applies to. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1RoleBinding(V1RoleRef roleRef, IList subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Subjects == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subjects"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (RoleRef != null) - { - RoleRef.Validate(); - } - if (Subjects != null) - { - foreach (var element in Subjects) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1RoleBindingList.cs b/src/generated/Models/V1RoleBindingList.cs deleted file mode 100644 index 53eaa29b2..000000000 --- a/src/generated/Models/V1RoleBindingList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1RoleBindingList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of RoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1RoleList.cs b/src/generated/Models/V1RoleList.cs deleted file mode 100644 index 7a48b4acc..000000000 --- a/src/generated/Models/V1RoleList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1RoleList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of Roles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1RoleRef.cs b/src/generated/Models/V1RoleRef.cs deleted file mode 100644 index 21274df1b..000000000 --- a/src/generated/Models/V1RoleRef.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets aPIGroup is the group for the resource being - /// referenced - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Gets or sets kind is the type of resource being referenced - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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() - { - if (ApiGroup == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ApiGroup"); - } - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1SELinuxOptions.cs b/src/generated/Models/V1SELinuxOptions.cs deleted file mode 100644 index fb62402cc..000000000 --- a/src/generated/Models/V1SELinuxOptions.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string role = default(string), string type = default(string), string user = default(string)) - { - Level = level; - Role = role; - Type = type; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets level is SELinux level label that applies to the - /// container. - /// - [JsonProperty(PropertyName = "level")] - public string Level { get; set; } - - /// - /// Gets or sets role is a SELinux role label that applies to the - /// container. - /// - [JsonProperty(PropertyName = "role")] - public string Role { get; set; } - - /// - /// Gets or sets type is a SELinux type label that applies to the - /// container. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Gets or sets user is a SELinux user label that applies to the - /// container. - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - } -} diff --git a/src/generated/Models/V1Scale.cs b/src/generated/Models/V1Scale.cs deleted file mode 100644 index cfd5f1fe6..000000000 --- a/src/generated/Models/V1Scale.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - public V1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1ScaleSpec spec = default(V1ScaleSpec), V1ScaleStatus status = default(V1ScaleStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V1ScaleSpec Spec { get; set; } - - /// - /// Gets or sets current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ScaleIOPersistentVolumeSource.cs b/src/generated/Models/V1ScaleIOPersistentVolumeSource.cs deleted file mode 100644 index 5674826d2..000000000 --- a/src/generated/Models/V1ScaleIOPersistentVolumeSource.cs +++ /dev/null @@ -1,168 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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". Implicitly inferred to be "ext4" if unspecified. - /// 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. - /// 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 = default(string), string protectionDomain = default(string), bool? readOnlyProperty = default(bool?), bool? sslEnabled = default(bool?), string storageMode = default(string), string storagePool = default(string), string volumeName = default(string)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the host address of the ScaleIO API Gateway. - /// - [JsonProperty(PropertyName = "gateway")] - public string Gateway { get; set; } - - /// - /// Gets or sets the name of the ScaleIO Protection Domain for the - /// configured storage. - /// - [JsonProperty(PropertyName = "protectionDomain")] - public string ProtectionDomain { get; set; } - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets flag to enable/disable SSL communication with Gateway, - /// default false - /// - [JsonProperty(PropertyName = "sslEnabled")] - public bool? SslEnabled { get; set; } - - /// - /// Gets or sets indicates whether the storage for a volume should be - /// ThickProvisioned or ThinProvisioned. - /// - [JsonProperty(PropertyName = "storageMode")] - public string StorageMode { get; set; } - - /// - /// Gets or sets the ScaleIO Storage Pool associated with the - /// protection domain. - /// - [JsonProperty(PropertyName = "storagePool")] - public string StoragePool { get; set; } - - /// - /// Gets or sets the name of the storage system as configured in - /// ScaleIO. - /// - [JsonProperty(PropertyName = "system")] - public string System { get; set; } - - /// - /// Gets or sets 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 (Gateway == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Gateway"); - } - if (SecretRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SecretRef"); - } - if (System == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "System"); - } - } - } -} diff --git a/src/generated/Models/V1ScaleIOVolumeSource.cs b/src/generated/Models/V1ScaleIOVolumeSource.cs deleted file mode 100644 index 641c736b0..000000000 --- a/src/generated/Models/V1ScaleIOVolumeSource.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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". Implicitly inferred to be "ext4" if unspecified. - /// 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. - /// 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 = default(string), string protectionDomain = default(string), bool? readOnlyProperty = default(bool?), bool? sslEnabled = default(bool?), string storageMode = default(string), string storagePool = default(string), string volumeName = default(string)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the host address of the ScaleIO API Gateway. - /// - [JsonProperty(PropertyName = "gateway")] - public string Gateway { get; set; } - - /// - /// Gets or sets the name of the ScaleIO Protection Domain for the - /// configured storage. - /// - [JsonProperty(PropertyName = "protectionDomain")] - public string ProtectionDomain { get; set; } - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets flag to enable/disable SSL communication with Gateway, - /// default false - /// - [JsonProperty(PropertyName = "sslEnabled")] - public bool? SslEnabled { get; set; } - - /// - /// Gets or sets indicates whether the storage for a volume should be - /// ThickProvisioned or ThinProvisioned. - /// - [JsonProperty(PropertyName = "storageMode")] - public string StorageMode { get; set; } - - /// - /// Gets or sets the ScaleIO Storage Pool associated with the - /// protection domain. - /// - [JsonProperty(PropertyName = "storagePool")] - public string StoragePool { get; set; } - - /// - /// Gets or sets the name of the storage system as configured in - /// ScaleIO. - /// - [JsonProperty(PropertyName = "system")] - public string System { get; set; } - - /// - /// Gets or sets 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 (Gateway == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Gateway"); - } - if (SecretRef == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "SecretRef"); - } - if (System == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "System"); - } - } - } -} diff --git a/src/generated/Models/V1ScaleSpec.cs b/src/generated/Models/V1ScaleSpec.cs deleted file mode 100644 index dba17715e..000000000 --- a/src/generated/Models/V1ScaleSpec.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(int?)) - { - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets desired number of instances for the scaled object. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - } -} diff --git a/src/generated/Models/V1ScaleStatus.cs b/src/generated/Models/V1ScaleStatus.cs deleted file mode 100644 index d162676ea..000000000 --- a/src/generated/Models/V1ScaleStatus.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string)) - { - Replicas = replicas; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets actual number of observed instances of the scaled - /// object. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1Secret.cs b/src/generated/Models/V1Secret.cs deleted file mode 100644 index 63e62c1da..000000000 --- a/src/generated/Models/V1Secret.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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 - /// Kind is a string value representing the REST - /// resource this object represents. Servers may infer this from the - /// endpoint the client submits requests to. Cannot be updated. In - /// CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// stringData allows specifying non-binary - /// secret data in string form. It is provided as a write-only - /// convenience method. All keys and values are merged into the data - /// field on write, overwriting any existing values. It is never output - /// when reading from the API. - /// Used to facilitate programmatic handling of - /// secret data. - public V1Secret(string apiVersion = default(string), IDictionary data = default(IDictionary), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IDictionary stringData = default(IDictionary), string type = default(string)) - { - ApiVersion = apiVersion; - Data = data; - Kind = kind; - Metadata = metadata; - StringData = stringData; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets stringData allows specifying non-binary secret data in - /// string form. It is provided as a write-only convenience method. All - /// keys and values are merged into the data field on write, - /// overwriting any existing values. It is never output when reading - /// from the API. - /// - [JsonProperty(PropertyName = "stringData")] - public IDictionary StringData { get; set; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1SecretEnvSource.cs b/src/generated/Models/V1SecretEnvSource.cs deleted file mode 100644 index 421c3ed92..000000000 --- a/src/generated/Models/V1SecretEnvSource.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), bool? optional = default(bool?)) - { - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the Secret must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - } -} diff --git a/src/generated/Models/V1SecretKeySelector.cs b/src/generated/Models/V1SecretKeySelector.cs deleted file mode 100644 index 54c94507e..000000000 --- a/src/generated/Models/V1SecretKeySelector.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 it's key must - /// be defined - public V1SecretKeySelector(string key, string name = default(string), bool? optional = default(bool?)) - { - Key = key; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the key of the secret to select from. Must be a valid - /// secret key. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the Secret or it's key must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Key == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Key"); - } - } - } -} diff --git a/src/generated/Models/V1SecretList.cs b/src/generated/Models/V1SecretList.cs deleted file mode 100644 index 164bc9d44..000000000 --- a/src/generated/Models/V1SecretList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1SecretList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of secret objects. More info: - /// https://kubernetes.io/docs/concepts/configuration/secret - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1SecretProjection.cs b/src/generated/Models/V1SecretProjection.cs deleted file mode 100644 index f8755ddb0..000000000 --- a/src/generated/Models/V1SecretProjection.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IList), string name = default(string), bool? optional = default(bool?)) - { - Items = items; - Name = name; - Optional = optional; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the Secret or its key must be defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - } -} diff --git a/src/generated/Models/V1SecretReference.cs b/src/generated/Models/V1SecretReference.cs deleted file mode 100644 index 623eb9ff8..000000000 --- a/src/generated/Models/V1SecretReference.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string namespaceProperty = default(string)) - { - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name is unique within a namespace to reference a - /// secret resource. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets namespace defines the space within which the secret - /// name must be unique. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - } -} diff --git a/src/generated/Models/V1SecretVolumeSource.cs b/src/generated/Models/V1SecretVolumeSource.cs deleted file mode 100644 index cb6d453e9..000000000 --- a/src/generated/Models/V1SecretVolumeSource.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 to use on created - /// files by default. Must be a value between 0 and 0777. Defaults to - /// 0644. Directories within the path are not affected by this setting. - /// This might be in conflict with other options that affect the file - /// mode, like fsGroup, and the result can be other mode bits - /// set. - /// 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 it's 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 = default(int?), IList items = default(IList), bool? optional = default(bool?), string secretName = default(string)) - { - DefaultMode = defaultMode; - Items = items; - Optional = optional; - SecretName = secretName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets optional: mode bits to use on created files by - /// default. Must be a value between 0 and 0777. Defaults to 0644. - /// Directories within the path are not affected by this setting. This - /// might be in conflict with other options that affect the file mode, - /// like fsGroup, and the result can be other mode bits set. - /// - [JsonProperty(PropertyName = "defaultMode")] - public int? DefaultMode { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specify whether the Secret or it's keys must be - /// defined - /// - [JsonProperty(PropertyName = "optional")] - public bool? Optional { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1SecurityContext.cs b/src/generated/Models/V1SecurityContext.cs deleted file mode 100644 index e0a403eaa..000000000 --- a/src/generated/Models/V1SecurityContext.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// Whether this container has a - /// read-only root filesystem. Default is false. - /// 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. - public V1SecurityContext(bool? allowPrivilegeEscalation = default(bool?), V1Capabilities capabilities = default(V1Capabilities), bool? privileged = default(bool?), bool? readOnlyRootFilesystem = default(bool?), bool? runAsNonRoot = default(bool?), long? runAsUser = default(long?), V1SELinuxOptions seLinuxOptions = default(V1SELinuxOptions)) - { - AllowPrivilegeEscalation = allowPrivilegeEscalation; - Capabilities = capabilities; - Privileged = privileged; - ReadOnlyRootFilesystem = readOnlyRootFilesystem; - RunAsNonRoot = runAsNonRoot; - RunAsUser = runAsUser; - SeLinuxOptions = seLinuxOptions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets whether this container has a read-only root - /// filesystem. Default is false. - /// - [JsonProperty(PropertyName = "readOnlyRootFilesystem")] - public bool? ReadOnlyRootFilesystem { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1SelfSubjectAccessReview.cs b/src/generated/Models/V1SelfSubjectAccessReview.cs deleted file mode 100644 index 5b0a82ef5..000000000 --- a/src/generated/Models/V1SelfSubjectAccessReview.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request is allowed or not - public V1SelfSubjectAccessReview(V1SelfSubjectAccessReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1SubjectAccessReviewStatus status = default(V1SubjectAccessReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated. user and groups must be empty - /// - [JsonProperty(PropertyName = "spec")] - public V1SelfSubjectAccessReviewSpec Spec { get; set; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1SelfSubjectAccessReviewSpec.cs b/src/generated/Models/V1SelfSubjectAccessReviewSpec.cs deleted file mode 100644 index cc2bda1a1..000000000 --- a/src/generated/Models/V1SelfSubjectAccessReviewSpec.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(V1NonResourceAttributes), V1ResourceAttributes resourceAttributes = default(V1ResourceAttributes)) - { - NonResourceAttributes = nonResourceAttributes; - ResourceAttributes = resourceAttributes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets nonResourceAttributes describes information for a - /// non-resource access request - /// - [JsonProperty(PropertyName = "nonResourceAttributes")] - public V1NonResourceAttributes NonResourceAttributes { get; set; } - - /// - /// Gets or sets resourceAuthorizationAttributes describes information - /// for a resource access request - /// - [JsonProperty(PropertyName = "resourceAttributes")] - public V1ResourceAttributes ResourceAttributes { get; set; } - - } -} diff --git a/src/generated/Models/V1SelfSubjectRulesReview.cs b/src/generated/Models/V1SelfSubjectRulesReview.cs deleted file mode 100644 index f1975d3a9..000000000 --- a/src/generated/Models/V1SelfSubjectRulesReview.cs +++ /dev/null @@ -1,128 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates the set of actions a user can perform. - public V1SelfSubjectRulesReview(V1SelfSubjectRulesReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1SubjectRulesReviewStatus status = default(V1SubjectRulesReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated. - /// - [JsonProperty(PropertyName = "spec")] - public V1SelfSubjectRulesReviewSpec Spec { get; set; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1SelfSubjectRulesReviewSpec.cs b/src/generated/Models/V1SelfSubjectRulesReviewSpec.cs deleted file mode 100644 index ecacaba6d..000000000 --- a/src/generated/Models/V1SelfSubjectRulesReviewSpec.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - 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 = default(string)) - { - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets namespace to evaluate rules for. Required. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - } -} diff --git a/src/generated/Models/V1ServerAddressByClientCIDR.cs b/src/generated/Models/V1ServerAddressByClientCIDR.cs deleted file mode 100644 index 788220e2b..000000000 --- a/src/generated/Models/V1ServerAddressByClientCIDR.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (ClientCIDR == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientCIDR"); - } - if (ServerAddress == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServerAddress"); - } - } - } -} diff --git a/src/generated/Models/V1Service.cs b/src/generated/Models/V1Service.cs deleted file mode 100644 index 437b81204..000000000 --- a/src/generated/Models/V1Service.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Spec defines the behavior of a service. - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1Service(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1ServiceSpec spec = default(V1ServiceSpec), V1ServiceStatus status = default(V1ServiceStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the behavior of a service. - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1ServiceSpec Spec { get; set; } - - /// - /// Gets or sets most recently observed status of the service. - /// Populated by the system. Read-only. More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ServiceAccount.cs b/src/generated/Models/V1ServiceAccount.cs deleted file mode 100644 index b6a827a86..000000000 --- a/src/generated/Models/V1ServiceAccount.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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 = default(string), bool? automountServiceAccountToken = default(bool?), IList imagePullSecrets = default(IList), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList secrets = default(IList)) - { - 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(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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 (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1ServiceAccountList.cs b/src/generated/Models/V1ServiceAccountList.cs deleted file mode 100644 index b730c2ce6..000000000 --- a/src/generated/Models/V1ServiceAccountList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1ServiceAccountList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of ServiceAccounts. More info: - /// https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ServiceList.cs b/src/generated/Models/V1ServiceList.cs deleted file mode 100644 index 308a6eaa5..000000000 --- a/src/generated/Models/V1ServiceList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1ServiceList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of services - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1ServicePort.cs b/src/generated/Models/V1ServicePort.cs deleted file mode 100644 index 689c28e5e..000000000 --- a/src/generated/Models/V1ServicePort.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 name of this port within the service. This - /// must be a DNS_LABEL. All ports within a ServiceSpec must have - /// unique names. This maps to the 'Name' field in EndpointPort - /// objects. Optional if only one ServicePort is defined on this - /// service. - /// The port on each node on which this service - /// is exposed when type=NodePort or LoadBalancer. Usually assigned by - /// the system. If specified, it will be allocated to the service if - /// unused or else creation of the service will fail. Default is to - /// auto-allocate a port if the ServiceType of this Service requires - /// one. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - /// The IP protocol for this port. Supports - /// "TCP" and "UDP". 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 name = default(string), int? nodePort = default(int?), string protocol = default(string), IntstrIntOrString targetPort = default(IntstrIntOrString)) - { - Name = name; - NodePort = nodePort; - Port = port; - Protocol = protocol; - TargetPort = targetPort; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the name of this port within the service. This must be - /// a DNS_LABEL. All ports within a ServiceSpec must have unique names. - /// This maps to the 'Name' field in EndpointPort objects. Optional if - /// only one ServicePort is defined on this service. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets the port on each node on which this service is exposed - /// when type=NodePort or LoadBalancer. Usually assigned by the system. - /// If specified, it will be allocated to the service if unused or else - /// creation of the service will fail. Default is to auto-allocate a - /// port if the ServiceType of this Service requires one. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - /// - [JsonProperty(PropertyName = "nodePort")] - public int? NodePort { get; set; } - - /// - /// Gets or sets the port that will be exposed by this service. - /// - [JsonProperty(PropertyName = "port")] - public int Port { get; set; } - - /// - /// Gets or sets the IP protocol for this port. Supports "TCP" and - /// "UDP". Default is TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - /// - /// Gets or sets 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() - { - } - } -} diff --git a/src/generated/Models/V1ServiceSpec.cs b/src/generated/Models/V1ServiceSpec.cs deleted file mode 100644 index 5666e8399..000000000 --- a/src/generated/Models/V1ServiceSpec.cs +++ /dev/null @@ -1,288 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// clusterIP is the IP address of the service - /// and is usually assigned randomly by the master. If an address is - /// specified manually and is not in use by others, it will be - /// allocated to the service; otherwise, creation of the service will - /// fail. This field can not be changed through updates. Valid values - /// are "None", empty string (""), or a valid IP address. "None" can be - /// specified for headless services when proxying is not required. Only - /// applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if - /// type is ExternalName. 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 kubedns or equivalent will return as a CNAME record for this - /// service. No proxying will be involved. Must be a valid DNS name 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. If not specified, - /// HealthCheckNodePort is created by the service api backend with the - /// allocated nodePort. Will use user-specified nodePort value if - /// specified by the client. Only effects when Type is set to - /// LoadBalancer and ExternalTrafficPolicy is set to Local. - /// 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/configure-cloud-provider-firewall/ - /// 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, - /// when set to true, indicates that DNS implementations must publish - /// the notReadyAddresses of subsets for the Endpoints associated with - /// the Service. The default value is false. The primary use case for - /// setting this field is to use a StatefulSet's Headless Service to - /// propagate SRV records for its Pods without respect to their - /// readiness for purpose of peer discovery. This field will replace - /// the service.alpha.kubernetes.io/tolerate-unready-endpoints when - /// that annotation is deprecated and all clients have been converted - /// to use this field. - /// 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. "ExternalName" maps to the specified - /// externalName. "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. If clusterIP is "None", no virtual IP is - /// allocated and the endpoints are published as a set of endpoints - /// rather than a stable IP. "NodePort" builds on ClusterIP and - /// allocates a port on every node which routes to the clusterIP. - /// "LoadBalancer" builds on NodePort and creates an external - /// load-balancer (if supported in the current cloud) which routes to - /// the clusterIP. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types - public V1ServiceSpec(string clusterIP = default(string), IList externalIPs = default(IList), string externalName = default(string), string externalTrafficPolicy = default(string), int? healthCheckNodePort = default(int?), string loadBalancerIP = default(string), IList loadBalancerSourceRanges = default(IList), IList ports = default(IList), bool? publishNotReadyAddresses = default(bool?), IDictionary selector = default(IDictionary), string sessionAffinity = default(string), V1SessionAffinityConfig sessionAffinityConfig = default(V1SessionAffinityConfig), string type = default(string)) - { - ClusterIP = clusterIP; - ExternalIPs = externalIPs; - ExternalName = externalName; - ExternalTrafficPolicy = externalTrafficPolicy; - HealthCheckNodePort = healthCheckNodePort; - 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(); - - /// - /// Gets or sets clusterIP is the IP address of the service and is - /// usually assigned randomly by the master. If an address is specified - /// manually and is not in use by others, it will be allocated to the - /// service; otherwise, creation of the service will fail. This field - /// can not be changed through updates. Valid values are "None", empty - /// string (""), or a valid IP address. "None" can be specified for - /// headless services when proxying is not required. Only applies to - /// types ClusterIP, NodePort, and LoadBalancer. Ignored if type is - /// ExternalName. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - /// - [JsonProperty(PropertyName = "clusterIP")] - public string ClusterIP { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets externalName is the external reference that kubedns or - /// equivalent will return as a CNAME record for this service. No - /// proxying will be involved. Must be a valid DNS name and requires - /// Type to be ExternalName. - /// - [JsonProperty(PropertyName = "externalName")] - public string ExternalName { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets healthCheckNodePort specifies the healthcheck nodePort - /// for the service. If not specified, HealthCheckNodePort is created - /// by the service api backend with the allocated nodePort. Will use - /// user-specified nodePort value if specified by the client. Only - /// effects when Type is set to LoadBalancer and ExternalTrafficPolicy - /// is set to Local. - /// - [JsonProperty(PropertyName = "healthCheckNodePort")] - public int? HealthCheckNodePort { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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/configure-cloud-provider-firewall/ - /// - [JsonProperty(PropertyName = "loadBalancerSourceRanges")] - public IList LoadBalancerSourceRanges { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets publishNotReadyAddresses, when set to true, indicates - /// that DNS implementations must publish the notReadyAddresses of - /// subsets for the Endpoints associated with the Service. The default - /// value is false. The primary use case for setting this field is to - /// use a StatefulSet's Headless Service to propagate SRV records for - /// its Pods without respect to their readiness for purpose of peer - /// discovery. This field will replace the - /// service.alpha.kubernetes.io/tolerate-unready-endpoints when that - /// annotation is deprecated and all clients have been converted to use - /// this field. - /// - [JsonProperty(PropertyName = "publishNotReadyAddresses")] - public bool? PublishNotReadyAddresses { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets sessionAffinityConfig contains the configurations of - /// session affinity. - /// - [JsonProperty(PropertyName = "sessionAffinityConfig")] - public V1SessionAffinityConfig SessionAffinityConfig { get; set; } - - /// - /// Gets or sets type determines how the Service is exposed. Defaults - /// to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, - /// and LoadBalancer. "ExternalName" maps to the specified - /// externalName. "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. If clusterIP is "None", no virtual IP is - /// allocated and the endpoints are published as a set of endpoints - /// rather than a stable IP. "NodePort" builds on ClusterIP and - /// allocates a port on every node which routes to the clusterIP. - /// "LoadBalancer" builds on NodePort and creates an external - /// load-balancer (if supported in the current cloud) which routes to - /// the clusterIP. More info: - /// https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V1ServiceStatus.cs b/src/generated/Models/V1ServiceStatus.cs deleted file mode 100644 index abb106147..000000000 --- a/src/generated/Models/V1ServiceStatus.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// - /// LoadBalancer contains the current status - /// of the load-balancer, if one is present. - public V1ServiceStatus(V1LoadBalancerStatus loadBalancer = default(V1LoadBalancerStatus)) - { - LoadBalancer = loadBalancer; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets loadBalancer contains the current status of the - /// load-balancer, if one is present. - /// - [JsonProperty(PropertyName = "loadBalancer")] - public V1LoadBalancerStatus LoadBalancer { get; set; } - - } -} diff --git a/src/generated/Models/V1SessionAffinityConfig.cs b/src/generated/Models/V1SessionAffinityConfig.cs deleted file mode 100644 index 1b0808c29..000000000 --- a/src/generated/Models/V1SessionAffinityConfig.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(V1ClientIPConfig)) - { - ClientIP = clientIP; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets clientIP contains the configurations of Client IP - /// based session affinity. - /// - [JsonProperty(PropertyName = "clientIP")] - public V1ClientIPConfig ClientIP { get; set; } - - } -} diff --git a/src/generated/Models/V1Status.cs b/src/generated/Models/V1Status.cs deleted file mode 100644 index 9c1414f7e..000000000 --- a/src/generated/Models/V1Status.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/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/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/api-conventions.md#spec-and-status - public V1Status(string apiVersion = default(string), int? code = default(int?), V1StatusDetails details = default(V1StatusDetails), string kind = default(string), string message = default(string), V1ListMeta metadata = default(V1ListMeta), string reason = default(string), string status = default(string)) - { - 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(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets suggested HTTP return code for this status, 0 if not - /// set. - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets a human-readable description of the status of this - /// operation. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "metadata")] - public V1ListMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets status of the operation. One of: "Success" or - /// "Failure". More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - } -} diff --git a/src/generated/Models/V1StatusCause.cs b/src/generated/Models/V1StatusCause.cs deleted file mode 100644 index 255481916..000000000 --- a/src/generated/Models/V1StatusCause.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string message = default(string), string reason = default(string)) - { - Field = field; - Message = message; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1StatusDetails.cs b/src/generated/Models/V1StatusDetails.cs deleted file mode 100644 index 0fe149351..000000000 --- a/src/generated/Models/V1StatusDetails.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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 = default(IList), string group = default(string), string kind = default(string), string name = default(string), int? retryAfterSeconds = default(int?), string uid = default(string)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the group attribute of the resource associated with - /// the status StatusReason. - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1StorageClass.cs b/src/generated/Models/V1StorageClass.cs deleted file mode 100644 index e55736085..000000000 --- a/src/generated/Models/V1StorageClass.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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. - public V1StorageClass(string provisioner, bool? allowVolumeExpansion = default(bool?), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList mountOptions = default(IList), IDictionary parameters = default(IDictionary), string reclaimPolicy = default(string)) - { - AllowVolumeExpansion = allowVolumeExpansion; - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - MountOptions = mountOptions; - Parameters = parameters; - Provisioner = provisioner; - ReclaimPolicy = reclaimPolicy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets allowVolumeExpansion shows whether the storage class - /// allow volume expand - /// - [JsonProperty(PropertyName = "allowVolumeExpansion")] - public bool? AllowVolumeExpansion { get; set; } - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets parameters holds the parameters for the provisioner - /// that should create volumes of this storage class. - /// - [JsonProperty(PropertyName = "parameters")] - public IDictionary Parameters { get; set; } - - /// - /// Gets or sets provisioner indicates the type of the provisioner. - /// - [JsonProperty(PropertyName = "provisioner")] - public string Provisioner { get; set; } - - /// - /// Gets or sets dynamically provisioned PersistentVolumes of this - /// storage class are created with this reclaimPolicy. Defaults to - /// Delete. - /// - [JsonProperty(PropertyName = "reclaimPolicy")] - public string ReclaimPolicy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Provisioner == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Provisioner"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1StorageClassList.cs b/src/generated/Models/V1StorageClassList.cs deleted file mode 100644 index 329b2bac2..000000000 --- a/src/generated/Models/V1StorageClassList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1StorageClassList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of StorageClasses - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1StorageOSPersistentVolumeSource.cs b/src/generated/Models/V1StorageOSPersistentVolumeSource.cs deleted file mode 100644 index 1d4f5e7ca..000000000 --- a/src/generated/Models/V1StorageOSPersistentVolumeSource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), bool? readOnlyProperty = default(bool?), V1ObjectReference secretRef = default(V1ObjectReference), string volumeName = default(string), string volumeNamespace = default(string)) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - VolumeName = volumeName; - VolumeNamespace = volumeNamespace; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1StorageOSVolumeSource.cs b/src/generated/Models/V1StorageOSVolumeSource.cs deleted file mode 100644 index 7517f8fcf..000000000 --- a/src/generated/Models/V1StorageOSVolumeSource.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), bool? readOnlyProperty = default(bool?), V1LocalObjectReference secretRef = default(V1LocalObjectReference), string volumeName = default(string), string volumeNamespace = default(string)) - { - FsType = fsType; - ReadOnlyProperty = readOnlyProperty; - SecretRef = secretRef; - VolumeName = volumeName; - VolumeNamespace = volumeNamespace; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets defaults to false (read/write). ReadOnly here will - /// force the ReadOnly setting in VolumeMounts. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1Subject.cs b/src/generated/Models/V1Subject.cs deleted file mode 100644 index eb2768df2..000000000 --- a/src/generated/Models/V1Subject.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), string namespaceProperty = default(string)) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets name of the object being referenced. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets 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() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1SubjectAccessReview.cs b/src/generated/Models/V1SubjectAccessReview.cs deleted file mode 100644 index 212e2f17a..000000000 --- a/src/generated/Models/V1SubjectAccessReview.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request is allowed or not - public V1SubjectAccessReview(V1SubjectAccessReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1SubjectAccessReviewStatus status = default(V1SubjectAccessReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1SubjectAccessReviewSpec Spec { get; set; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1SubjectAccessReviewSpec.cs b/src/generated/Models/V1SubjectAccessReviewSpec.cs deleted file mode 100644 index 5471a2563..000000000 --- a/src/generated/Models/V1SubjectAccessReviewSpec.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IDictionary>), IList groups = default(IList), V1NonResourceAttributes nonResourceAttributes = default(V1NonResourceAttributes), V1ResourceAttributes resourceAttributes = default(V1ResourceAttributes), string uid = default(string), string user = default(string)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets groups is the groups you're testing for. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// Gets or sets nonResourceAttributes describes information for a - /// non-resource access request - /// - [JsonProperty(PropertyName = "nonResourceAttributes")] - public V1NonResourceAttributes NonResourceAttributes { get; set; } - - /// - /// Gets or sets resourceAuthorizationAttributes describes information - /// for a resource access request - /// - [JsonProperty(PropertyName = "resourceAttributes")] - public V1ResourceAttributes ResourceAttributes { get; set; } - - /// - /// Gets or sets UID information about the requesting user. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1SubjectAccessReviewStatus.cs b/src/generated/Models/V1SubjectAccessReviewStatus.cs deleted file mode 100644 index a7c263ce1..000000000 --- a/src/generated/Models/V1SubjectAccessReviewStatus.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// 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, string evaluationError = default(string), string reason = default(string)) - { - Allowed = allowed; - EvaluationError = evaluationError; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets allowed is required. True if the action would be - /// allowed, false otherwise. - /// - [JsonProperty(PropertyName = "allowed")] - public bool Allowed { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1SubjectRulesReviewStatus.cs b/src/generated/Models/V1SubjectRulesReviewStatus.cs deleted file mode 100644 index 9450f9137..000000000 --- a/src/generated/Models/V1SubjectRulesReviewStatus.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(string)) - { - EvaluationError = evaluationError; - Incomplete = incomplete; - NonResourceRules = nonResourceRules; - ResourceRules = resourceRules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "NonResourceRules"); - } - if (ResourceRules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ResourceRules"); - } - if (NonResourceRules != null) - { - foreach (var element in NonResourceRules) - { - if (element != null) - { - element.Validate(); - } - } - } - if (ResourceRules != null) - { - foreach (var element1 in ResourceRules) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1TCPSocketAction.cs b/src/generated/Models/V1TCPSocketAction.cs deleted file mode 100644 index 9c0888a44..000000000 --- a/src/generated/Models/V1TCPSocketAction.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string)) - { - Host = host; - Port = port; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets optional: Host name to connect to, defaults to the pod - /// IP. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - /// - /// Gets or sets 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"); - } - } - } -} diff --git a/src/generated/Models/V1Taint.cs b/src/generated/Models/V1Taint.cs deleted file mode 100644 index 78ca33f3e..000000000 --- a/src/generated/Models/V1Taint.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. - /// Required. The taint value corresponding to the - /// taint key. - public V1Taint(string effect, string key, System.DateTime? timeAdded = default(System.DateTime?), string value = default(string)) - { - Effect = effect; - Key = key; - TimeAdded = timeAdded; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets required. The taint key to be applied to a node. - /// - [JsonProperty(PropertyName = "key")] - public string Key { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets required. 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() - { - if (Effect == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Effect"); - } - if (Key == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Key"); - } - } - } -} diff --git a/src/generated/Models/V1TokenReview.cs b/src/generated/Models/V1TokenReview.cs deleted file mode 100644 index 98f0782ca..000000000 --- a/src/generated/Models/V1TokenReview.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request can be authenticated. - public V1TokenReview(V1TokenReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1TokenReviewStatus status = default(V1TokenReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1TokenReviewSpec Spec { get; set; } - - /// - /// Gets or sets 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"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1TokenReviewSpec.cs b/src/generated/Models/V1TokenReviewSpec.cs deleted file mode 100644 index 084350675..000000000 --- a/src/generated/Models/V1TokenReviewSpec.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// - /// Token is the opaque bearer token. - public V1TokenReviewSpec(string token = default(string)) - { - Token = token; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets token is the opaque bearer token. - /// - [JsonProperty(PropertyName = "token")] - public string Token { get; set; } - - } -} diff --git a/src/generated/Models/V1TokenReviewStatus.cs b/src/generated/Models/V1TokenReviewStatus.cs deleted file mode 100644 index f75a336b9..000000000 --- a/src/generated/Models/V1TokenReviewStatus.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - /// - /// 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(bool? authenticated = default(bool?), string error = default(string), V1UserInfo user = default(V1UserInfo)) - { - Authenticated = authenticated; - Error = error; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets authenticated indicates that the token was associated - /// with a known user. - /// - [JsonProperty(PropertyName = "authenticated")] - public bool? Authenticated { get; set; } - - /// - /// Gets or sets error indicates that the token couldn't be checked - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// Gets or sets user is the UserInfo associated with the provided - /// token. - /// - [JsonProperty(PropertyName = "user")] - public V1UserInfo User { get; set; } - - } -} diff --git a/src/generated/Models/V1Toleration.cs b/src/generated/Models/V1Toleration.cs deleted file mode 100644 index 470a420f5..000000000 --- a/src/generated/Models/V1Toleration.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 = default(string), string key = default(string), string operatorProperty = default(string), long? tolerationSeconds = default(long?), string value = default(string)) - { - Effect = effect; - Key = key; - OperatorProperty = operatorProperty; - TolerationSeconds = tolerationSeconds; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1UserInfo.cs b/src/generated/Models/V1UserInfo.cs deleted file mode 100644 index a968f0082..000000000 --- a/src/generated/Models/V1UserInfo.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 = default(IDictionary>), IList groups = default(IList), string uid = default(string), string username = default(string)) - { - Extra = extra; - Groups = groups; - Uid = uid; - Username = username; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets any additional information provided by the - /// authenticator. - /// - [JsonProperty(PropertyName = "extra")] - public IDictionary> Extra { get; set; } - - /// - /// Gets or sets the names of groups this user is a part of. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the name that uniquely identifies this user among all - /// active users. - /// - [JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - } -} diff --git a/src/generated/Models/V1Volume.cs b/src/generated/Models/V1Volume.cs deleted file mode 100644 index b1f7433ed..000000000 --- a/src/generated/Models/V1Volume.cs +++ /dev/null @@ -1,459 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// ConfigMap represents a configMap that - /// should populate this volume - /// 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 - /// 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. - /// This is an alpha feature and may change in future. - /// 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. - /// Glusterfs represents a Glusterfs mount on - /// the host that shares a pod's lifetime. More info: - /// https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/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 = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFileVolumeSource azureFile = default(V1AzureFileVolumeSource), V1CephFSVolumeSource cephfs = default(V1CephFSVolumeSource), V1CinderVolumeSource cinder = default(V1CinderVolumeSource), V1ConfigMapVolumeSource configMap = default(V1ConfigMapVolumeSource), V1DownwardAPIVolumeSource downwardAPI = default(V1DownwardAPIVolumeSource), V1EmptyDirVolumeSource emptyDir = default(V1EmptyDirVolumeSource), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexVolumeSource flexVolume = default(V1FlexVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GitRepoVolumeSource gitRepo = default(V1GitRepoVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIVolumeSource iscsi = default(V1ISCSIVolumeSource), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), V1PersistentVolumeClaimVolumeSource persistentVolumeClaim = default(V1PersistentVolumeClaimVolumeSource), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1ProjectedVolumeSource projected = default(V1ProjectedVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDVolumeSource rbd = default(V1RBDVolumeSource), V1ScaleIOVolumeSource scaleIO = default(V1ScaleIOVolumeSource), V1SecretVolumeSource secret = default(V1SecretVolumeSource), V1StorageOSVolumeSource storageos = default(V1StorageOSVolumeSource), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource)) - { - AwsElasticBlockStore = awsElasticBlockStore; - AzureDisk = azureDisk; - AzureFile = azureFile; - Cephfs = cephfs; - Cinder = cinder; - ConfigMap = configMap; - DownwardAPI = downwardAPI; - EmptyDir = emptyDir; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets azureDisk represents an Azure Data Disk mount on the - /// host and bind mount to the pod. - /// - [JsonProperty(PropertyName = "azureDisk")] - public V1AzureDiskVolumeSource AzureDisk { get; set; } - - /// - /// Gets or sets azureFile represents an Azure File Service mount on - /// the host and bind mount to the pod. - /// - [JsonProperty(PropertyName = "azureFile")] - public V1AzureFileVolumeSource AzureFile { get; set; } - - /// - /// Gets or sets cephFS represents a Ceph FS mount on the host that - /// shares a pod's lifetime - /// - [JsonProperty(PropertyName = "cephfs")] - public V1CephFSVolumeSource Cephfs { get; set; } - - /// - /// Gets or sets cinder represents a cinder volume attached and mounted - /// on kubelets host machine More info: - /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md - /// - [JsonProperty(PropertyName = "cinder")] - public V1CinderVolumeSource Cinder { get; set; } - - /// - /// Gets or sets configMap represents a configMap that should populate - /// this volume - /// - [JsonProperty(PropertyName = "configMap")] - public V1ConfigMapVolumeSource ConfigMap { get; set; } - - /// - /// Gets or sets downwardAPI represents downward API about the pod that - /// should populate this volume - /// - [JsonProperty(PropertyName = "downwardAPI")] - public V1DownwardAPIVolumeSource DownwardAPI { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets flexVolume represents a generic volume resource that - /// is provisioned/attached using an exec based plugin. This is an - /// alpha feature and may change in future. - /// - [JsonProperty(PropertyName = "flexVolume")] - public V1FlexVolumeSource FlexVolume { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets gitRepo represents a git repository at a particular - /// revision. - /// - [JsonProperty(PropertyName = "gitRepo")] - public V1GitRepoVolumeSource GitRepo { get; set; } - - /// - /// Gets or sets glusterfs represents a Glusterfs mount on the host - /// that shares a pod's lifetime. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md - /// - [JsonProperty(PropertyName = "glusterfs")] - public V1GlusterfsVolumeSource Glusterfs { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets ISCSI represents an ISCSI Disk resource that is - /// attached to a kubelet's host machine and then exposed to the pod. - /// More info: - /// https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md - /// - [JsonProperty(PropertyName = "iscsi")] - public V1ISCSIVolumeSource Iscsi { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets photonPersistentDisk represents a PhotonController - /// persistent disk attached and mounted on kubelets host machine - /// - [JsonProperty(PropertyName = "photonPersistentDisk")] - public V1PhotonPersistentDiskVolumeSource PhotonPersistentDisk { get; set; } - - /// - /// Gets or sets portworxVolume represents a portworx volume attached - /// and mounted on kubelets host machine - /// - [JsonProperty(PropertyName = "portworxVolume")] - public V1PortworxVolumeSource PortworxVolume { get; set; } - - /// - /// Gets or sets items for all in one resources secrets, configmaps, - /// and downward API - /// - [JsonProperty(PropertyName = "projected")] - public V1ProjectedVolumeSource Projected { get; set; } - - /// - /// Gets or sets quobyte represents a Quobyte mount on the host that - /// shares a pod's lifetime - /// - [JsonProperty(PropertyName = "quobyte")] - public V1QuobyteVolumeSource Quobyte { get; set; } - - /// - /// Gets or sets RBD represents a Rados Block Device mount on the host - /// that shares a pod's lifetime. More info: - /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md - /// - [JsonProperty(PropertyName = "rbd")] - public V1RBDVolumeSource Rbd { get; set; } - - /// - /// Gets or sets scaleIO represents a ScaleIO persistent volume - /// attached and mounted on Kubernetes nodes. - /// - [JsonProperty(PropertyName = "scaleIO")] - public V1ScaleIOVolumeSource ScaleIO { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets storageOS represents a StorageOS volume attached and - /// mounted on Kubernetes nodes. - /// - [JsonProperty(PropertyName = "storageos")] - public V1StorageOSVolumeSource Storageos { get; set; } - - /// - /// Gets or sets 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() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (AwsElasticBlockStore != null) - { - AwsElasticBlockStore.Validate(); - } - if (AzureDisk != null) - { - AzureDisk.Validate(); - } - if (AzureFile != null) - { - AzureFile.Validate(); - } - if (Cephfs != null) - { - Cephfs.Validate(); - } - if (Cinder != null) - { - Cinder.Validate(); - } - if (FlexVolume != null) - { - FlexVolume.Validate(); - } - if (GcePersistentDisk != null) - { - GcePersistentDisk.Validate(); - } - if (GitRepo != null) - { - GitRepo.Validate(); - } - if (Glusterfs != null) - { - Glusterfs.Validate(); - } - if (HostPath != null) - { - HostPath.Validate(); - } - if (Iscsi != null) - { - Iscsi.Validate(); - } - if (Nfs != null) - { - Nfs.Validate(); - } - if (PersistentVolumeClaim != null) - { - PersistentVolumeClaim.Validate(); - } - if (PhotonPersistentDisk != null) - { - PhotonPersistentDisk.Validate(); - } - if (PortworxVolume != null) - { - PortworxVolume.Validate(); - } - if (Projected != null) - { - Projected.Validate(); - } - if (Quobyte != null) - { - Quobyte.Validate(); - } - if (Rbd != null) - { - Rbd.Validate(); - } - if (ScaleIO != null) - { - ScaleIO.Validate(); - } - if (VsphereVolume != null) - { - VsphereVolume.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1VolumeMount.cs b/src/generated/Models/V1VolumeMount.cs deleted file mode 100644 index 2da683641..000000000 --- a/src/generated/Models/V1VolumeMount.cs +++ /dev/null @@ -1,112 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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, MountPropagationHostToContainer is used. This - /// field is alpha in 1.8 and can be reworked or removed in a future - /// release. - /// 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). - public V1VolumeMount(string mountPath, string name, string mountPropagation = default(string), bool? readOnlyProperty = default(bool?), string subPath = default(string)) - { - MountPath = mountPath; - MountPropagation = mountPropagation; - Name = name; - ReadOnlyProperty = readOnlyProperty; - SubPath = subPath; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets path within the container at which the volume should - /// be mounted. Must not contain ':'. - /// - [JsonProperty(PropertyName = "mountPath")] - public string MountPath { get; set; } - - /// - /// Gets or sets mountPropagation determines how mounts are propagated - /// from the host to container and the other way around. When not set, - /// MountPropagationHostToContainer is used. This field is alpha in 1.8 - /// and can be reworked or removed in a future release. - /// - [JsonProperty(PropertyName = "mountPropagation")] - public string MountPropagation { get; set; } - - /// - /// Gets or sets this must match the Name of a Volume. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets mounted read-only if true, read-write otherwise (false - /// or unspecified). Defaults to false. - /// - [JsonProperty(PropertyName = "readOnly")] - public bool? ReadOnlyProperty { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (MountPath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MountPath"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1VolumeProjection.cs b/src/generated/Models/V1VolumeProjection.cs deleted file mode 100644 index 82ac5f5dd..000000000 --- a/src/generated/Models/V1VolumeProjection.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 - public V1VolumeProjection(V1ConfigMapProjection configMap = default(V1ConfigMapProjection), V1DownwardAPIProjection downwardAPI = default(V1DownwardAPIProjection), V1SecretProjection secret = default(V1SecretProjection)) - { - ConfigMap = configMap; - DownwardAPI = downwardAPI; - Secret = secret; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets information about the configMap data to project - /// - [JsonProperty(PropertyName = "configMap")] - public V1ConfigMapProjection ConfigMap { get; set; } - - /// - /// Gets or sets information about the downwardAPI data to project - /// - [JsonProperty(PropertyName = "downwardAPI")] - public V1DownwardAPIProjection DownwardAPI { get; set; } - - /// - /// Gets or sets information about the secret data to project - /// - [JsonProperty(PropertyName = "secret")] - public V1SecretProjection Secret { get; set; } - - } -} diff --git a/src/generated/Models/V1VsphereVirtualDiskVolumeSource.cs b/src/generated/Models/V1VsphereVirtualDiskVolumeSource.cs deleted file mode 100644 index dd902103b..000000000 --- a/src/generated/Models/V1VsphereVirtualDiskVolumeSource.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), string storagePolicyID = default(string), string storagePolicyName = default(string)) - { - FsType = fsType; - StoragePolicyID = storagePolicyID; - StoragePolicyName = storagePolicyName; - VolumePath = volumePath; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets storage Policy Based Management (SPBM) profile ID - /// associated with the StoragePolicyName. - /// - [JsonProperty(PropertyName = "storagePolicyID")] - public string StoragePolicyID { get; set; } - - /// - /// Gets or sets storage Policy Based Management (SPBM) profile name. - /// - [JsonProperty(PropertyName = "storagePolicyName")] - public string StoragePolicyName { get; set; } - - /// - /// Gets or sets 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() - { - if (VolumePath == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "VolumePath"); - } - } - } -} diff --git a/src/generated/Models/V1WatchEvent.cs b/src/generated/Models/V1WatchEvent.cs deleted file mode 100644 index 06888dc88..000000000 --- a/src/generated/Models/V1WatchEvent.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(RuntimeRawExtension objectProperty, string type) - { - ObjectProperty = objectProperty; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 RuntimeRawExtension ObjectProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ObjectProperty == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ObjectProperty"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - if (ObjectProperty != null) - { - ObjectProperty.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1WeightedPodAffinityTerm.cs b/src/generated/Models/V1WeightedPodAffinityTerm.cs deleted file mode 100644 index d4534a794..000000000 --- a/src/generated/Models/V1WeightedPodAffinityTerm.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets required. A pod affinity term, associated with the - /// corresponding weight. - /// - [JsonProperty(PropertyName = "podAffinityTerm")] - public V1PodAffinityTerm PodAffinityTerm { get; set; } - - /// - /// Gets or sets 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"); - } - } - } -} diff --git a/src/generated/Models/V1alpha1AdmissionHookClientConfig.cs b/src/generated/Models/V1alpha1AdmissionHookClientConfig.cs deleted file mode 100644 index 1e87e3a5a..000000000 --- a/src/generated/Models/V1alpha1AdmissionHookClientConfig.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// AdmissionHookClientConfig contains the information to make a TLS - /// connection with the webhook - /// - public partial class V1alpha1AdmissionHookClientConfig - { - /// - /// Initializes a new instance of the V1alpha1AdmissionHookClientConfig - /// class. - /// - public V1alpha1AdmissionHookClientConfig() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1AdmissionHookClientConfig - /// class. - /// - /// CABundle is a PEM encoded CA bundle which - /// will be used to validate webhook's server certificate. - /// Required - /// Service is a reference to the service for - /// this webhook. If there is only one port open for the service, that - /// port will be used. If there are multiple ports open, port 443 will - /// be used if it is open, otherwise it is an error. Required - public V1alpha1AdmissionHookClientConfig(byte[] caBundle, V1alpha1ServiceReference service) - { - CaBundle = caBundle; - Service = service; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets cABundle is a PEM encoded CA bundle which will be used - /// to validate webhook's server certificate. Required - /// - [JsonProperty(PropertyName = "caBundle")] - public byte[] CaBundle { get; set; } - - /// - /// Gets or sets service is a reference to the service for this - /// webhook. If there is only one port open for the service, that port - /// will be used. If there are multiple ports open, port 443 will be - /// used if it is open, otherwise it is an error. Required - /// - [JsonProperty(PropertyName = "service")] - public V1alpha1ServiceReference Service { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CaBundle == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CaBundle"); - } - if (Service == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Service"); - } - if (Service != null) - { - Service.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1alpha1ClusterRole.cs b/src/generated/Models/V1alpha1ClusterRole.cs deleted file mode 100644 index c5d85c83d..000000000 --- a/src/generated/Models/V1alpha1ClusterRole.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1alpha1ClusterRole - { - /// - /// Initializes a new instance of the V1alpha1ClusterRole class. - /// - public V1alpha1ClusterRole() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ClusterRole class. - /// - /// Rules holds all the PolicyRules for this - /// ClusterRole - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1ClusterRole(IList rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Rules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rules"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1ClusterRoleBinding.cs b/src/generated/Models/V1alpha1ClusterRoleBinding.cs deleted file mode 100644 index 4f06bb087..000000000 --- a/src/generated/Models/V1alpha1ClusterRoleBinding.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 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. - /// Subjects holds references to the objects the - /// role applies to. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1ClusterRoleBinding(V1alpha1RoleRef roleRef, IList subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Subjects == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subjects"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (RoleRef != null) - { - RoleRef.Validate(); - } - if (Subjects != null) - { - foreach (var element in Subjects) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1ClusterRoleBindingList.cs b/src/generated/Models/V1alpha1ClusterRoleBindingList.cs deleted file mode 100644 index 61f2bb737..000000000 --- a/src/generated/Models/V1alpha1ClusterRoleBindingList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ClusterRoleBindingList is a collection of ClusterRoleBindings - /// - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1ClusterRoleBindingList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ClusterRoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1ClusterRoleList.cs b/src/generated/Models/V1alpha1ClusterRoleList.cs deleted file mode 100644 index 958be3708..000000000 --- a/src/generated/Models/V1alpha1ClusterRoleList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ClusterRoleList is a collection of ClusterRoles - /// - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1ClusterRoleList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ClusterRoles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1ExternalAdmissionHook.cs b/src/generated/Models/V1alpha1ExternalAdmissionHook.cs deleted file mode 100644 index 30a61e4d9..000000000 --- a/src/generated/Models/V1alpha1ExternalAdmissionHook.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ExternalAdmissionHook describes an external admission webhook and the - /// resources and operations it applies to. - /// - public partial class V1alpha1ExternalAdmissionHook - { - /// - /// Initializes a new instance of the V1alpha1ExternalAdmissionHook - /// class. - /// - public V1alpha1ExternalAdmissionHook() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ExternalAdmissionHook - /// class. - /// - /// ClientConfig defines how to communicate - /// with the hook. Required - /// The name of the external 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. - /// FailurePolicy defines how unrecognized - /// errors from the admission endpoint are handled - allowed values are - /// Ignore or Fail. Defaults to Ignore. - /// Rules describes what operations on what - /// resources/subresources the webhook cares about. The webhook cares - /// about an operation if it matches _any_ Rule. - public V1alpha1ExternalAdmissionHook(V1alpha1AdmissionHookClientConfig clientConfig, string name, string failurePolicy = default(string), IList rules = default(IList)) - { - ClientConfig = clientConfig; - FailurePolicy = failurePolicy; - Name = name; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets clientConfig defines how to communicate with the hook. - /// Required - /// - [JsonProperty(PropertyName = "clientConfig")] - public V1alpha1AdmissionHookClientConfig ClientConfig { get; set; } - - /// - /// Gets or sets failurePolicy defines how unrecognized errors from the - /// admission endpoint are handled - allowed values are Ignore or Fail. - /// Defaults to Ignore. - /// - [JsonProperty(PropertyName = "failurePolicy")] - public string FailurePolicy { get; set; } - - /// - /// Gets or sets the name of the external 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; } - - /// - /// Gets or sets rules describes what operations on what - /// resources/subresources the webhook cares about. The webhook cares - /// about an operation if it matches _any_ Rule. - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ClientConfig == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ClientConfig"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (ClientConfig != null) - { - ClientConfig.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1alpha1ExternalAdmissionHookConfiguration.cs b/src/generated/Models/V1alpha1ExternalAdmissionHookConfiguration.cs deleted file mode 100644 index dfe25f52b..000000000 --- a/src/generated/Models/V1alpha1ExternalAdmissionHookConfiguration.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ExternalAdmissionHookConfiguration describes the configuration of - /// initializers. - /// - public partial class V1alpha1ExternalAdmissionHookConfiguration - { - /// - /// Initializes a new instance of the - /// V1alpha1ExternalAdmissionHookConfiguration class. - /// - public V1alpha1ExternalAdmissionHookConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1alpha1ExternalAdmissionHookConfiguration 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/api-conventions.md#resources - /// ExternalAdmissionHooks is a - /// list of external admission webhooks and the affected resources and - /// operations. - /// Kind is a string value representing the REST - /// resource this object represents. Servers may infer this from the - /// endpoint the client submits requests to. Cannot be updated. In - /// CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - public V1alpha1ExternalAdmissionHookConfiguration(string apiVersion = default(string), IList externalAdmissionHooks = default(IList), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - ExternalAdmissionHooks = externalAdmissionHooks; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets externalAdmissionHooks is a list of external admission - /// webhooks and the affected resources and operations. - /// - [JsonProperty(PropertyName = "externalAdmissionHooks")] - public IList ExternalAdmissionHooks { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ExternalAdmissionHooks != null) - { - foreach (var element in ExternalAdmissionHooks) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1alpha1ExternalAdmissionHookConfigurationList.cs b/src/generated/Models/V1alpha1ExternalAdmissionHookConfigurationList.cs deleted file mode 100644 index fba04a738..000000000 --- a/src/generated/Models/V1alpha1ExternalAdmissionHookConfigurationList.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ExternalAdmissionHookConfigurationList is a list of - /// ExternalAdmissionHookConfiguration. - /// - public partial class V1alpha1ExternalAdmissionHookConfigurationList - { - /// - /// Initializes a new instance of the - /// V1alpha1ExternalAdmissionHookConfigurationList class. - /// - public V1alpha1ExternalAdmissionHookConfigurationList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1alpha1ExternalAdmissionHookConfigurationList class. - /// - /// List of - /// ExternalAdmissionHookConfiguration. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1alpha1ExternalAdmissionHookConfigurationList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of ExternalAdmissionHookConfiguration. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1Initializer.cs b/src/generated/Models/V1alpha1Initializer.cs deleted file mode 100644 index 75c869228..000000000 --- a/src/generated/Models/V1alpha1Initializer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Initializer describes the name and the failure policy of an - /// initializer, and what resources it applies to. - /// - public partial class V1alpha1Initializer - { - /// - /// Initializes a new instance of the V1alpha1Initializer class. - /// - public V1alpha1Initializer() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Initializer class. - /// - /// Name is the identifier of the initializer. It - /// will be added to the object that needs to be initialized. Name - /// should be fully qualified, e.g., alwayspullimages.kubernetes.io, - /// where "alwayspullimages" is the name of the webhook, and - /// kubernetes.io is the name of the organization. Required - /// Rules describes what resources/subresources the - /// initializer cares about. The initializer cares about an operation - /// if it matches _any_ Rule. Rule.Resources must not include - /// subresources. - public V1alpha1Initializer(string name, IList rules = default(IList)) - { - Name = name; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name is the identifier of the initializer. It will be - /// added to the object that needs to be initialized. Name should be - /// fully qualified, e.g., alwayspullimages.kubernetes.io, where - /// "alwayspullimages" is the name of the webhook, and kubernetes.io is - /// the name of the organization. Required - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets rules describes what resources/subresources the - /// initializer cares about. The initializer cares about an operation - /// if it matches _any_ Rule. Rule.Resources must not include - /// subresources. - /// - [JsonProperty(PropertyName = "rules")] - public IList Rules { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1alpha1InitializerConfiguration.cs b/src/generated/Models/V1alpha1InitializerConfiguration.cs deleted file mode 100644 index 82277bef5..000000000 --- a/src/generated/Models/V1alpha1InitializerConfiguration.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// InitializerConfiguration describes the configuration of initializers. - /// - public partial class V1alpha1InitializerConfiguration - { - /// - /// Initializes a new instance of the V1alpha1InitializerConfiguration - /// class. - /// - public V1alpha1InitializerConfiguration() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1InitializerConfiguration - /// 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/api-conventions.md#resources - /// Initializers is a list of resources and - /// their default initializers Order-sensitive. When merging multiple - /// InitializerConfigurations, we sort the initializers from different - /// InitializerConfigurations by the name of the - /// InitializerConfigurations; the order of the initializers from the - /// same InitializerConfiguration is preserved. - /// Kind is a string value representing the REST - /// resource this object represents. Servers may infer this from the - /// endpoint the client submits requests to. Cannot be updated. In - /// CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - public V1alpha1InitializerConfiguration(string apiVersion = default(string), IList initializers = default(IList), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Initializers = initializers; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets initializers is a list of resources and their default - /// initializers Order-sensitive. When merging multiple - /// InitializerConfigurations, we sort the initializers from different - /// InitializerConfigurations by the name of the - /// InitializerConfigurations; the order of the initializers from the - /// same InitializerConfiguration is preserved. - /// - [JsonProperty(PropertyName = "initializers")] - public IList Initializers { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Initializers != null) - { - foreach (var element in Initializers) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1alpha1InitializerConfigurationList.cs b/src/generated/Models/V1alpha1InitializerConfigurationList.cs deleted file mode 100644 index 52c0445c0..000000000 --- a/src/generated/Models/V1alpha1InitializerConfigurationList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// InitializerConfigurationList is a list of InitializerConfiguration. - /// - public partial class V1alpha1InitializerConfigurationList - { - /// - /// Initializes a new instance of the - /// V1alpha1InitializerConfigurationList class. - /// - public V1alpha1InitializerConfigurationList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1alpha1InitializerConfigurationList class. - /// - /// List of InitializerConfiguration. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1alpha1InitializerConfigurationList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of InitializerConfiguration. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1PodPreset.cs b/src/generated/Models/V1alpha1PodPreset.cs deleted file mode 100644 index 2da2b9047..000000000 --- a/src/generated/Models/V1alpha1PodPreset.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// PodPreset is a policy resource that defines additional runtime - /// requirements for a Pod. - /// - public partial class V1alpha1PodPreset - { - /// - /// Initializes a new instance of the V1alpha1PodPreset class. - /// - public V1alpha1PodPreset() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1PodPreset 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/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/api-conventions.md#types-kinds - public V1alpha1PodPreset(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1alpha1PodPresetSpec spec = default(V1alpha1PodPresetSpec)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// - [JsonProperty(PropertyName = "spec")] - public V1alpha1PodPresetSpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1alpha1PodPresetList.cs b/src/generated/Models/V1alpha1PodPresetList.cs deleted file mode 100644 index 921d67d60..000000000 --- a/src/generated/Models/V1alpha1PodPresetList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// PodPresetList is a list of PodPreset objects. - /// - public partial class V1alpha1PodPresetList - { - /// - /// Initializes a new instance of the V1alpha1PodPresetList class. - /// - public V1alpha1PodPresetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1PodPresetList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1alpha1PodPresetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1PodPresetSpec.cs b/src/generated/Models/V1alpha1PodPresetSpec.cs deleted file mode 100644 index 22338c9e4..000000000 --- a/src/generated/Models/V1alpha1PodPresetSpec.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// PodPresetSpec is a description of a pod preset. - /// - public partial class V1alpha1PodPresetSpec - { - /// - /// Initializes a new instance of the V1alpha1PodPresetSpec class. - /// - public V1alpha1PodPresetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1PodPresetSpec class. - /// - /// Env defines the collection of EnvVar to inject - /// into containers. - /// EnvFrom defines the collection of - /// EnvFromSource to inject into containers. - /// Selector is a label query over a set of - /// resources, in this case pods. Required. - /// VolumeMounts defines the collection of - /// VolumeMount to inject into containers. - /// Volumes defines the collection of Volume to - /// inject into the pod. - public V1alpha1PodPresetSpec(IList env = default(IList), IList envFrom = default(IList), V1LabelSelector selector = default(V1LabelSelector), IList volumeMounts = default(IList), IList volumes = default(IList)) - { - Env = env; - EnvFrom = envFrom; - Selector = selector; - VolumeMounts = volumeMounts; - Volumes = volumes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets env defines the collection of EnvVar to inject into - /// containers. - /// - [JsonProperty(PropertyName = "env")] - public IList Env { get; set; } - - /// - /// Gets or sets envFrom defines the collection of EnvFromSource to - /// inject into containers. - /// - [JsonProperty(PropertyName = "envFrom")] - public IList EnvFrom { get; set; } - - /// - /// Gets or sets selector is a label query over a set of resources, in - /// this case pods. Required. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets volumeMounts defines the collection of VolumeMount to - /// inject into containers. - /// - [JsonProperty(PropertyName = "volumeMounts")] - public IList VolumeMounts { get; set; } - - /// - /// Gets or sets volumes defines the collection of Volume to inject - /// into the pod. - /// - [JsonProperty(PropertyName = "volumes")] - public IList Volumes { get; set; } - - } -} diff --git a/src/generated/Models/V1alpha1PolicyRule.cs b/src/generated/Models/V1alpha1PolicyRule.cs deleted file mode 100644 index cda77a0bb..000000000 --- a/src/generated/Models/V1alpha1PolicyRule.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// VerbAll represents all kinds. - /// 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 This name is intentionally - /// different than the internal type so that the DefaultConvert works - /// nicely and because the ordering may be different. 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. ResourceAll represents all resources. - public V1alpha1PolicyRule(IList verbs, IList apiGroups = default(IList), IList nonResourceURLs = default(IList), IList resourceNames = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - NonResourceURLs = nonResourceURLs; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 This name is intentionally different than the - /// internal type so that the DefaultConvert works nicely and because - /// the ordering may be different. 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resources is a list of resources this rule applies to. - /// ResourceAll represents all resources. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Gets or sets verbs is a list of Verbs that apply to ALL the - /// ResourceKinds and AttributeRestrictions contained in this rule. - /// VerbAll represents all kinds. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1alpha1PriorityClass.cs b/src/generated/Models/V1alpha1PriorityClass.cs deleted file mode 100644 index 3eee7f7dc..000000000 --- a/src/generated/Models/V1alpha1PriorityClass.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 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/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. - /// Kind is a string value representing the REST - /// resource this object represents. Servers may infer this from the - /// endpoint the client submits requests to. Cannot be updated. In - /// CamelCase. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - public V1alpha1PriorityClass(int value, string apiVersion = default(string), string description = default(string), bool? globalDefault = default(bool?), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Description = description; - GlobalDefault = globalDefault; - Kind = kind; - Metadata = metadata; - Value = value; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets globalDefault specifies whether this PriorityClass - /// should be considered as the default priority for pods that do not - /// have any priority class. - /// - [JsonProperty(PropertyName = "globalDefault")] - public bool? GlobalDefault { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1alpha1PriorityClassList.cs b/src/generated/Models/V1alpha1PriorityClassList.cs deleted file mode 100644 index 5da9aa442..000000000 --- a/src/generated/Models/V1alpha1PriorityClassList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata More info: - /// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata - public V1alpha1PriorityClassList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of PriorityClasses - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata More info: - /// http://releases.k8s.io/HEAD/docs/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1Role.cs b/src/generated/Models/V1alpha1Role.cs deleted file mode 100644 index 727642fd1..000000000 --- a/src/generated/Models/V1alpha1Role.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Role is a namespaced, logical grouping of PolicyRules that can be - /// referenced as a unit by a RoleBinding. - /// - public partial class V1alpha1Role - { - /// - /// Initializes a new instance of the V1alpha1Role class. - /// - public V1alpha1Role() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Role class. - /// - /// Rules holds all the PolicyRules for this - /// Role - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1Role(IList rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Rules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rules"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1RoleBinding.cs b/src/generated/Models/V1alpha1RoleBinding.cs deleted file mode 100644 index 4f9912421..000000000 --- a/src/generated/Models/V1alpha1RoleBinding.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 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. - /// Subjects holds references to the objects the - /// role applies to. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1RoleBinding(V1alpha1RoleRef roleRef, IList subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Subjects == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subjects"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (RoleRef != null) - { - RoleRef.Validate(); - } - if (Subjects != null) - { - foreach (var element in Subjects) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1RoleBindingList.cs b/src/generated/Models/V1alpha1RoleBindingList.cs deleted file mode 100644 index aeb83d493..000000000 --- a/src/generated/Models/V1alpha1RoleBindingList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// RoleBindingList is a collection of RoleBindings - /// - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1RoleBindingList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of RoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1RoleList.cs b/src/generated/Models/V1alpha1RoleList.cs deleted file mode 100644 index a31a40843..000000000 --- a/src/generated/Models/V1alpha1RoleList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// RoleList is a collection of Roles - /// - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1alpha1RoleList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of Roles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1alpha1RoleRef.cs b/src/generated/Models/V1alpha1RoleRef.cs deleted file mode 100644 index 71134cc4f..000000000 --- a/src/generated/Models/V1alpha1RoleRef.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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(); - - /// - /// Gets or sets aPIGroup is the group for the resource being - /// referenced - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Gets or sets kind is the type of resource being referenced - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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() - { - if (ApiGroup == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ApiGroup"); - } - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1alpha1Rule.cs b/src/generated/Models/V1alpha1Rule.cs deleted file mode 100644 index 254f96883..000000000 --- a/src/generated/Models/V1alpha1Rule.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Rule is a tuple of APIGroups, APIVersion, and Resources.It is - /// recommended to make sure that all the tuple expansions are valid. - /// - public partial class V1alpha1Rule - { - /// - /// Initializes a new instance of the V1alpha1Rule class. - /// - public V1alpha1Rule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1Rule 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. - /// Resources is a list of resources this rule - /// applies to. - /// - /// For example: 'pods' means pods. 'pods/log' means the log - /// subresource of pods. '*' means all resources, but not subresources. - /// 'pods/*' means all subresources of pods. '*/scale' means all scale - /// subresources. '*/*' means all resources and their subresources. - /// - /// If wildcard is present, the validation rule will ensure resources - /// do not overlap with each other. - /// - /// Depending on the enclosing object, subresources might not be - /// allowed. Required. - public V1alpha1Rule(IList apiGroups = default(IList), IList apiVersions = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - ApiVersions = apiVersions; - Resources = resources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1alpha1RuleWithOperations.cs b/src/generated/Models/V1alpha1RuleWithOperations.cs deleted file mode 100644 index 995bb280c..000000000 --- a/src/generated/Models/V1alpha1RuleWithOperations.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1alpha1RuleWithOperations - { - /// - /// Initializes a new instance of the V1alpha1RuleWithOperations class. - /// - public V1alpha1RuleWithOperations() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1RuleWithOperations 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, or * for all operations. 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. - public V1alpha1RuleWithOperations(IList apiGroups = default(IList), IList apiVersions = default(IList), IList operations = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - ApiVersions = apiVersions; - Operations = operations; - Resources = resources; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets operations is the operations the admission hook cares - /// about - CREATE, UPDATE, or * for all operations. If '*' is present, - /// the length of the slice must be one. Required. - /// - [JsonProperty(PropertyName = "operations")] - public IList Operations { get; set; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1alpha1ServiceReference.cs b/src/generated/Models/V1alpha1ServiceReference.cs deleted file mode 100644 index e962149d2..000000000 --- a/src/generated/Models/V1alpha1ServiceReference.cs +++ /dev/null @@ -1,74 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// ServiceReference holds a reference to Service.legacy.k8s.io - /// - public partial class V1alpha1ServiceReference - { - /// - /// Initializes a new instance of the V1alpha1ServiceReference class. - /// - public V1alpha1ServiceReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1alpha1ServiceReference class. - /// - /// Name is the name of the service Required - /// Namespace is the namespace of the - /// service Required - public V1alpha1ServiceReference(string name, string namespaceProperty) - { - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name is the name of the service Required - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets namespace is the namespace of the service Required - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (NamespaceProperty == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "NamespaceProperty"); - } - } - } -} diff --git a/src/generated/Models/V1alpha1Subject.cs b/src/generated/Models/V1alpha1Subject.cs deleted file mode 100644 index 24e6d2453..000000000 --- a/src/generated/Models/V1alpha1Subject.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(string), string namespaceProperty = default(string)) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets name of the object being referenced. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets 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() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1beta1APIService.cs b/src/generated/Models/V1beta1APIService.cs deleted file mode 100644 index 9e84204d2..000000000 --- a/src/generated/Models/V1beta1APIService.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// APIService represents a server for a particular GroupVersion. Name must - /// be "version.group". - /// - public partial class V1beta1APIService - { - /// - /// Initializes a new instance of the V1beta1APIService class. - /// - public V1beta1APIService() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1APIService 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/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/api-conventions.md#types-kinds - /// Spec contains information for locating and - /// communicating with a server - /// Status contains derived information about an - /// API server - public V1beta1APIService(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1APIServiceSpec spec = default(V1beta1APIServiceSpec), V1beta1APIServiceStatus status = default(V1beta1APIServiceStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec contains information for locating and - /// communicating with a server - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1APIServiceSpec Spec { get; set; } - - /// - /// Gets or sets status contains derived information about an API - /// server - /// - [JsonProperty(PropertyName = "status")] - public V1beta1APIServiceStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1APIServiceCondition.cs b/src/generated/Models/V1beta1APIServiceCondition.cs deleted file mode 100644 index 1d493468d..000000000 --- a/src/generated/Models/V1beta1APIServiceCondition.cs +++ /dev/null @@ -1,102 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - public partial class V1beta1APIServiceCondition - { - /// - /// Initializes a new instance of the V1beta1APIServiceCondition class. - /// - public V1beta1APIServiceCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1APIServiceCondition 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 V1beta1APIServiceCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets human-readable message indicating details about last - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets unique, one-word, CamelCase reason for the condition's - /// last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status is the status of the condition. Can be True, - /// False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets 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() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1beta1APIServiceList.cs b/src/generated/Models/V1beta1APIServiceList.cs deleted file mode 100644 index b7bba7c18..000000000 --- a/src/generated/Models/V1beta1APIServiceList.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// APIServiceList is a list of APIService objects. - /// - public partial class V1beta1APIServiceList - { - /// - /// Initializes a new instance of the V1beta1APIServiceList class. - /// - public V1beta1APIServiceList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1APIServiceList 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/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/api-conventions.md#types-kinds - public V1beta1APIServiceList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1APIServiceSpec.cs b/src/generated/Models/V1beta1APIServiceSpec.cs deleted file mode 100644 index b39289499..000000000 --- a/src/generated/Models/V1beta1APIServiceSpec.cs +++ /dev/null @@ -1,165 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 V1beta1APIServiceSpec - { - /// - /// Initializes a new instance of the V1beta1APIServiceSpec class. - /// - public V1beta1APIServiceSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1APIServiceSpec class. - /// - /// CABundle is a PEM encoded CA bundle which - /// will be used to validate an API server's serving - /// certificate. - /// GroupPriorityMininum is the - /// priority this group should have at least. Higher priority means - /// that the group is prefered 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 - /// 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. - /// 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). The secondary sort is based on the - /// alphabetical comparison of the name of the object. (v1.bar before - /// v1.foo) Since it's inside of a group, the number can be small, - /// probably in the 10s. - /// 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. - /// Version is the API version this server hosts. - /// For example, "v1" - public V1beta1APIServiceSpec(byte[] caBundle, int groupPriorityMinimum, V1beta1ServiceReference service, int versionPriority, string group = default(string), bool? insecureSkipTLSVerify = default(bool?), string version = default(string)) - { - 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(); - - /// - /// Gets or sets cABundle is a PEM encoded CA bundle which will be used - /// to validate an API server's serving certificate. - /// - [JsonProperty(PropertyName = "caBundle")] - public byte[] CaBundle { get; set; } - - /// - /// Gets or sets group is the API group name this server hosts - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Gets or sets groupPriorityMininum is the priority this group should - /// have at least. Higher priority means that the group is prefered 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 V1beta1ServiceReference Service { get; set; } - - /// - /// Gets or sets version is the API version this server hosts. For - /// example, "v1" - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// Gets or sets 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). The secondary sort is based on the alphabetical - /// comparison of the name of the object. (v1.bar before v1.foo) Since - /// it's inside of a group, the number can be small, probably in the - /// 10s. - /// - [JsonProperty(PropertyName = "versionPriority")] - public int VersionPriority { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CaBundle == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CaBundle"); - } - if (Service == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Service"); - } - } - } -} diff --git a/src/generated/Models/V1beta1APIServiceStatus.cs b/src/generated/Models/V1beta1APIServiceStatus.cs deleted file mode 100644 index 95f182b1b..000000000 --- a/src/generated/Models/V1beta1APIServiceStatus.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// APIServiceStatus contains derived information about an API server - /// - public partial class V1beta1APIServiceStatus - { - /// - /// Initializes a new instance of the V1beta1APIServiceStatus class. - /// - public V1beta1APIServiceStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1APIServiceStatus class. - /// - /// Current service state of - /// apiService. - public V1beta1APIServiceStatus(IList conditions = default(IList)) - { - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets current service state of apiService. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1AllowedHostPath.cs b/src/generated/Models/V1beta1AllowedHostPath.cs deleted file mode 100644 index 9d9168783..000000000 --- a/src/generated/Models/V1beta1AllowedHostPath.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// 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. - /// - /// 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` - public V1beta1AllowedHostPath(string pathPrefix = default(string)) - { - PathPrefix = pathPrefix; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1beta1CertificateSigningRequest.cs b/src/generated/Models/V1beta1CertificateSigningRequest.cs deleted file mode 100644 index 0a052003e..000000000 --- a/src/generated/Models/V1beta1CertificateSigningRequest.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Describes a certificate signing request - /// - public partial class V1beta1CertificateSigningRequest - { - /// - /// Initializes a new instance of the V1beta1CertificateSigningRequest - /// class. - /// - public V1beta1CertificateSigningRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CertificateSigningRequest - /// 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/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/api-conventions.md#types-kinds - /// The certificate request itself and any - /// additional information. - /// Derived information about the request. - public V1beta1CertificateSigningRequest(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1CertificateSigningRequestSpec spec = default(V1beta1CertificateSigningRequestSpec), V1beta1CertificateSigningRequestStatus status = default(V1beta1CertificateSigningRequestStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets the certificate request itself and any additional - /// information. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1CertificateSigningRequestSpec Spec { get; set; } - - /// - /// Gets or sets derived information about the request. - /// - [JsonProperty(PropertyName = "status")] - public V1beta1CertificateSigningRequestStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1CertificateSigningRequestCondition.cs b/src/generated/Models/V1beta1CertificateSigningRequestCondition.cs deleted file mode 100644 index 265f22fc6..000000000 --- a/src/generated/Models/V1beta1CertificateSigningRequestCondition.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - public partial class V1beta1CertificateSigningRequestCondition - { - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestCondition class. - /// - public V1beta1CertificateSigningRequestCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestCondition class. - /// - /// request approval state, currently Approved or - /// Denied. - /// timestamp for the last update to this - /// condition - /// human readable message with details about the - /// request state - /// brief reason for the request state - public V1beta1CertificateSigningRequestCondition(string type, System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastUpdateTime = lastUpdateTime; - Message = message; - Reason = reason; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets timestamp for the last update to this condition - /// - [JsonProperty(PropertyName = "lastUpdateTime")] - public System.DateTime? LastUpdateTime { get; set; } - - /// - /// Gets or sets human readable message with details about the request - /// state - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets brief reason for the request state - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets request approval state, currently Approved or Denied. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1beta1CertificateSigningRequestList.cs b/src/generated/Models/V1beta1CertificateSigningRequestList.cs deleted file mode 100644 index be8f6cc69..000000000 --- a/src/generated/Models/V1beta1CertificateSigningRequestList.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class V1beta1CertificateSigningRequestList - { - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestList class. - /// - public V1beta1CertificateSigningRequestList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestList 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/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/api-conventions.md#types-kinds - public V1beta1CertificateSigningRequestList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1CertificateSigningRequestSpec.cs b/src/generated/Models/V1beta1CertificateSigningRequestSpec.cs deleted file mode 100644 index 012a48a56..000000000 --- a/src/generated/Models/V1beta1CertificateSigningRequestSpec.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This information is immutable after the request is created. Only the - /// Request and Usages fields can be set on creation, other fields are - /// derived by Kubernetes and cannot be modified by users. - /// - public partial class V1beta1CertificateSigningRequestSpec - { - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestSpec class. - /// - public V1beta1CertificateSigningRequestSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestSpec class. - /// - /// Base64-encoded PKCS#10 CSR data - /// Extra information about the requesting user. - /// See user.Info interface for details. - /// Group information about the requesting user. - /// See user.Info interface for details. - /// UID information about the requesting user. See - /// user.Info interface for details. - /// allowedUsages specifies a set of usage - /// contexts the key will be valid for. See: - /// https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - /// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - /// Information about the requesting user. See - /// user.Info interface for details. - public V1beta1CertificateSigningRequestSpec(byte[] request, IDictionary> extra = default(IDictionary>), IList groups = default(IList), string uid = default(string), IList usages = default(IList), string username = default(string)) - { - Extra = extra; - Groups = groups; - Request = request; - Uid = uid; - Usages = usages; - Username = username; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets extra information about the requesting user. See - /// user.Info interface for details. - /// - [JsonProperty(PropertyName = "extra")] - public IDictionary> Extra { get; set; } - - /// - /// Gets or sets group information about the requesting user. See - /// user.Info interface for details. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// Gets or sets base64-encoded PKCS#10 CSR data - /// - [JsonProperty(PropertyName = "request")] - public byte[] Request { get; set; } - - /// - /// Gets or sets UID information about the requesting user. See - /// user.Info interface for details. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Gets or sets allowedUsages specifies a set of usage contexts the - /// key will be valid for. See: - /// https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - /// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - /// - [JsonProperty(PropertyName = "usages")] - public IList Usages { get; set; } - - /// - /// Gets or sets information about the requesting user. See user.Info - /// interface for details. - /// - [JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Request == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Request"); - } - } - } -} diff --git a/src/generated/Models/V1beta1CertificateSigningRequestStatus.cs b/src/generated/Models/V1beta1CertificateSigningRequestStatus.cs deleted file mode 100644 index 3d16647c0..000000000 --- a/src/generated/Models/V1beta1CertificateSigningRequestStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class V1beta1CertificateSigningRequestStatus - { - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestStatus class. - /// - public V1beta1CertificateSigningRequestStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CertificateSigningRequestStatus class. - /// - /// If request was approved, the controller - /// will place the issued certificate here. - /// Conditions applied to the request, such as - /// approval or denial. - public V1beta1CertificateSigningRequestStatus(byte[] certificate = default(byte[]), IList conditions = default(IList)) - { - Certificate = certificate; - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets if request was approved, the controller will place the - /// issued certificate here. - /// - [JsonProperty(PropertyName = "certificate")] - public byte[] Certificate { get; set; } - - /// - /// Gets or sets conditions applied to the request, such as approval or - /// denial. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1ClusterRole.cs b/src/generated/Models/V1beta1ClusterRole.cs deleted file mode 100644 index 67bc521b7..000000000 --- a/src/generated/Models/V1beta1ClusterRole.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1ClusterRole - { - /// - /// Initializes a new instance of the V1beta1ClusterRole class. - /// - public V1beta1ClusterRole() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ClusterRole class. - /// - /// Rules holds all the PolicyRules for this - /// ClusterRole - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1ClusterRole(IList rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Rules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rules"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1ClusterRoleBinding.cs b/src/generated/Models/V1beta1ClusterRoleBinding.cs deleted file mode 100644 index 374aa910e..000000000 --- a/src/generated/Models/V1beta1ClusterRoleBinding.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1ClusterRoleBinding - { - /// - /// Initializes a new instance of the V1beta1ClusterRoleBinding class. - /// - public V1beta1ClusterRoleBinding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ClusterRoleBinding class. - /// - /// RoleRef can only reference a ClusterRole in - /// the global namespace. If the RoleRef cannot be resolved, the - /// Authorizer must return an error. - /// Subjects holds references to the objects the - /// role applies to. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1ClusterRoleBinding(V1beta1RoleRef roleRef, IList subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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 V1beta1RoleRef RoleRef { get; set; } - - /// - /// Gets or sets 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"); - } - if (Subjects == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subjects"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (RoleRef != null) - { - RoleRef.Validate(); - } - if (Subjects != null) - { - foreach (var element in Subjects) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1ClusterRoleBindingList.cs b/src/generated/Models/V1beta1ClusterRoleBindingList.cs deleted file mode 100644 index 220856f2b..000000000 --- a/src/generated/Models/V1beta1ClusterRoleBindingList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ClusterRoleBindingList is a collection of ClusterRoleBindings - /// - public partial class V1beta1ClusterRoleBindingList - { - /// - /// Initializes a new instance of the V1beta1ClusterRoleBindingList - /// class. - /// - public V1beta1ClusterRoleBindingList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ClusterRoleBindingList - /// 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1ClusterRoleBindingList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ClusterRoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1ClusterRoleList.cs b/src/generated/Models/V1beta1ClusterRoleList.cs deleted file mode 100644 index 7f0753202..000000000 --- a/src/generated/Models/V1beta1ClusterRoleList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ClusterRoleList is a collection of ClusterRoles - /// - public partial class V1beta1ClusterRoleList - { - /// - /// Initializes a new instance of the V1beta1ClusterRoleList class. - /// - public V1beta1ClusterRoleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ClusterRoleList 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1ClusterRoleList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of ClusterRoles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1ControllerRevision.cs b/src/generated/Models/V1beta1ControllerRevision.cs deleted file mode 100644 index dd8b0db7f..000000000 --- a/src/generated/Models/V1beta1ControllerRevision.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED - This group version of ControllerRevision is deprecated by - /// apps/v1beta2/ControllerRevision. See the release notes for more - /// information. 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 V1beta1ControllerRevision - { - /// - /// Initializes a new instance of the V1beta1ControllerRevision class. - /// - public V1beta1ControllerRevision() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ControllerRevision 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1ControllerRevision(long revision, string apiVersion = default(string), RuntimeRawExtension data = default(RuntimeRawExtension), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Data = data; - Kind = kind; - Metadata = metadata; - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets data is the serialized representation of the state. - /// - [JsonProperty(PropertyName = "data")] - public RuntimeRawExtension Data { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Data != null) - { - Data.Validate(); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1ControllerRevisionList.cs b/src/generated/Models/V1beta1ControllerRevisionList.cs deleted file mode 100644 index 9268c98c0..000000000 --- a/src/generated/Models/V1beta1ControllerRevisionList.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ControllerRevisionList is a resource containing a list of - /// ControllerRevision objects. - /// - public partial class V1beta1ControllerRevisionList - { - /// - /// Initializes a new instance of the V1beta1ControllerRevisionList - /// class. - /// - public V1beta1ControllerRevisionList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ControllerRevisionList - /// 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/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/api-conventions.md#types-kinds - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1ControllerRevisionList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of ControllerRevisions - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets more info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1CronJob.cs b/src/generated/Models/V1beta1CronJob.cs deleted file mode 100644 index 5dfb5cdeb..000000000 --- a/src/generated/Models/V1beta1CronJob.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - /// Current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1beta1CronJob(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1CronJobSpec spec = default(V1beta1CronJobSpec), V1beta1CronJobStatus status = default(V1beta1CronJobStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of a cron job, - /// including the schedule. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1CronJobSpec Spec { get; set; } - - /// - /// Gets or sets current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1CronJobList.cs b/src/generated/Models/V1beta1CronJobList.cs deleted file mode 100644 index dcfbd1720..000000000 --- a/src/generated/Models/V1beta1CronJobList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1CronJobList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of CronJobs. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1CronJobSpec.cs b/src/generated/Models/V1beta1CronJobSpec.cs deleted file mode 100644 index 9a449d577..000000000 --- a/src/generated/Models/V1beta1CronJobSpec.cs +++ /dev/null @@ -1,140 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. Defaults to Allow. - /// 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 = default(string), int? failedJobsHistoryLimit = default(int?), long? startingDeadlineSeconds = default(long?), int? successfulJobsHistoryLimit = default(int?), bool? suspend = default(bool?)) - { - 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(); - - /// - /// Gets or sets specifies how to treat concurrent executions of a Job. - /// Defaults to Allow. - /// - [JsonProperty(PropertyName = "concurrencyPolicy")] - public string ConcurrencyPolicy { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets specifies the job that will be created when executing - /// a CronJob. - /// - [JsonProperty(PropertyName = "jobTemplate")] - public V1beta1JobTemplateSpec JobTemplate { get; set; } - - /// - /// Gets or sets the schedule in Cron format, see - /// https://en.wikipedia.org/wiki/Cron. - /// - [JsonProperty(PropertyName = "schedule")] - public string Schedule { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Schedule == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Schedule"); - } - if (JobTemplate != null) - { - JobTemplate.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1CronJobStatus.cs b/src/generated/Models/V1beta1CronJobStatus.cs deleted file mode 100644 index 5cd8dc7b9..000000000 --- a/src/generated/Models/V1beta1CronJobStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - public V1beta1CronJobStatus(IList active = default(IList), System.DateTime? lastScheduleTime = default(System.DateTime?)) - { - Active = active; - LastScheduleTime = lastScheduleTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a list of pointers to currently running jobs. - /// - [JsonProperty(PropertyName = "active")] - public IList Active { get; set; } - - /// - /// Gets or sets information when was the last time the job was - /// successfully scheduled. - /// - [JsonProperty(PropertyName = "lastScheduleTime")] - public System.DateTime? LastScheduleTime { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1CustomResourceDefinition.cs b/src/generated/Models/V1beta1CustomResourceDefinition.cs deleted file mode 100644 index d49c83457..000000000 --- a/src/generated/Models/V1beta1CustomResourceDefinition.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta1CustomResourceDefinition - { - /// - /// Initializes a new instance of the V1beta1CustomResourceDefinition - /// class. - /// - public V1beta1CustomResourceDefinition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CustomResourceDefinition - /// 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/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/api-conventions.md#types-kinds - /// Spec describes how the user wants the resources - /// to appear - /// Status indicates the actual state of the - /// CustomResourceDefinition - public V1beta1CustomResourceDefinition(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1CustomResourceDefinitionSpec spec = default(V1beta1CustomResourceDefinitionSpec), V1beta1CustomResourceDefinitionStatus status = default(V1beta1CustomResourceDefinitionStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec describes how the user wants the resources to - /// appear - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1CustomResourceDefinitionSpec Spec { get; set; } - - /// - /// Gets or sets status indicates the actual state of the - /// CustomResourceDefinition - /// - [JsonProperty(PropertyName = "status")] - public V1beta1CustomResourceDefinitionStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1CustomResourceDefinitionCondition.cs b/src/generated/Models/V1beta1CustomResourceDefinitionCondition.cs deleted file mode 100644 index 52b433f1a..000000000 --- a/src/generated/Models/V1beta1CustomResourceDefinitionCondition.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// CustomResourceDefinitionCondition contains details for the current - /// condition of this pod. - /// - public partial class V1beta1CustomResourceDefinitionCondition - { - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionCondition class. - /// - public V1beta1CustomResourceDefinitionCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionCondition 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 V1beta1CustomResourceDefinitionCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets human-readable message indicating details about last - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets unique, one-word, CamelCase reason for the condition's - /// last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status is the status of the condition. Can be True, - /// False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets 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() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1beta1CustomResourceDefinitionList.cs b/src/generated/Models/V1beta1CustomResourceDefinitionList.cs deleted file mode 100644 index fee1397c6..000000000 --- a/src/generated/Models/V1beta1CustomResourceDefinitionList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// CustomResourceDefinitionList is a list of CustomResourceDefinition - /// objects. - /// - public partial class V1beta1CustomResourceDefinitionList - { - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionList class. - /// - public V1beta1CustomResourceDefinitionList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionList class. - /// - /// Items individual - /// CustomResourceDefinitions - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - public V1beta1CustomResourceDefinitionList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items individual CustomResourceDefinitions - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1CustomResourceDefinitionNames.cs b/src/generated/Models/V1beta1CustomResourceDefinitionNames.cs deleted file mode 100644 index e0aa56014..000000000 --- a/src/generated/Models/V1beta1CustomResourceDefinitionNames.cs +++ /dev/null @@ -1,116 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// CustomResourceDefinitionNames indicates the names to serve this - /// CustomResourceDefinition - /// - public partial class V1beta1CustomResourceDefinitionNames - { - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionNames class. - /// - public V1beta1CustomResourceDefinitionNames() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionNames class. - /// - /// Kind is the serialized kind of the resource. It - /// is normally CamelCase and singular. - /// Plural is the plural name of the resource to - /// serve. It must match the name of the - /// CustomResourceDefinition-registration too: plural.group and it must - /// be all lowercase. - /// ListKind is the serialized kind of the list - /// for this resource. Defaults to <kind>List. - /// ShortNames are short names for the - /// resource. It must be all lowercase. - /// Singular is the singular name of the - /// resource. It must be all lowercase Defaults to lowercased - /// <kind> - public V1beta1CustomResourceDefinitionNames(string kind, string plural, string listKind = default(string), IList shortNames = default(IList), string singular = default(string)) - { - Kind = kind; - ListKind = listKind; - Plural = plural; - ShortNames = shortNames; - Singular = singular; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets kind is the serialized kind of the resource. It is - /// normally CamelCase and singular. - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets listKind is the serialized kind of the list for this - /// resource. Defaults to &lt;kind&gt;List. - /// - [JsonProperty(PropertyName = "listKind")] - public string ListKind { get; set; } - - /// - /// Gets or sets plural is the plural name of the resource to serve. - /// It must match the name of the CustomResourceDefinition-registration - /// too: plural.group and it must be all lowercase. - /// - [JsonProperty(PropertyName = "plural")] - public string Plural { get; set; } - - /// - /// Gets or sets shortNames are short names for the resource. It must - /// be all lowercase. - /// - [JsonProperty(PropertyName = "shortNames")] - public IList ShortNames { get; set; } - - /// - /// Gets or sets singular is the singular name of the resource. It - /// must be all lowercase Defaults to lowercased &lt;kind&gt; - /// - [JsonProperty(PropertyName = "singular")] - public string Singular { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Plural == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Plural"); - } - } - } -} diff --git a/src/generated/Models/V1beta1CustomResourceDefinitionSpec.cs b/src/generated/Models/V1beta1CustomResourceDefinitionSpec.cs deleted file mode 100644 index 5ba75e484..000000000 --- a/src/generated/Models/V1beta1CustomResourceDefinitionSpec.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// CustomResourceDefinitionSpec describes how a user wants their resource - /// to appear - /// - public partial class V1beta1CustomResourceDefinitionSpec - { - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionSpec class. - /// - public V1beta1CustomResourceDefinitionSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionSpec class. - /// - /// Group is the group this resource belongs - /// in - /// Names are the names used to describe this - /// custom resource - /// Scope indicates whether this resource is - /// cluster or namespace scoped. Default is namespaced - /// Version is the version this resource belongs - /// in - /// Validation describes the validation - /// methods for CustomResources This field is alpha-level and should - /// only be sent to servers that enable the CustomResourceValidation - /// feature. - public V1beta1CustomResourceDefinitionSpec(string group, V1beta1CustomResourceDefinitionNames names, string scope, string version, V1beta1CustomResourceValidation validation = default(V1beta1CustomResourceValidation)) - { - Group = group; - Names = names; - Scope = scope; - Validation = validation; - Version = version; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets group is the group this resource belongs in - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Gets or sets names are the names used to describe this custom - /// resource - /// - [JsonProperty(PropertyName = "names")] - public V1beta1CustomResourceDefinitionNames Names { get; set; } - - /// - /// Gets or sets scope indicates whether this resource is cluster or - /// namespace scoped. Default is namespaced - /// - [JsonProperty(PropertyName = "scope")] - public string Scope { get; set; } - - /// - /// Gets or sets validation describes the validation methods for - /// CustomResources This field is alpha-level and should only be sent - /// to servers that enable the CustomResourceValidation feature. - /// - [JsonProperty(PropertyName = "validation")] - public V1beta1CustomResourceValidation Validation { get; set; } - - /// - /// Gets or sets version is the version this resource belongs in - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Group == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Group"); - } - if (Names == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Names"); - } - if (Scope == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Scope"); - } - if (Version == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Version"); - } - if (Names != null) - { - Names.Validate(); - } - if (Validation != null) - { - Validation.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1CustomResourceDefinitionStatus.cs b/src/generated/Models/V1beta1CustomResourceDefinitionStatus.cs deleted file mode 100644 index e10b55366..000000000 --- a/src/generated/Models/V1beta1CustomResourceDefinitionStatus.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// CustomResourceDefinitionStatus indicates the state of the - /// CustomResourceDefinition - /// - public partial class V1beta1CustomResourceDefinitionStatus - { - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionStatus class. - /// - public V1beta1CustomResourceDefinitionStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1CustomResourceDefinitionStatus 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 - public V1beta1CustomResourceDefinitionStatus(V1beta1CustomResourceDefinitionNames acceptedNames, IList conditions) - { - AcceptedNames = acceptedNames; - Conditions = conditions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 V1beta1CustomResourceDefinitionNames AcceptedNames { get; set; } - - /// - /// Gets or sets conditions indicate state for particular aspects of a - /// CustomResourceDefinition - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (AcceptedNames == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "AcceptedNames"); - } - if (Conditions == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Conditions"); - } - if (AcceptedNames != null) - { - AcceptedNames.Validate(); - } - if (Conditions != null) - { - foreach (var element in Conditions) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1CustomResourceValidation.cs b/src/generated/Models/V1beta1CustomResourceValidation.cs deleted file mode 100644 index 50626e244..000000000 --- a/src/generated/Models/V1beta1CustomResourceValidation.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// CustomResourceValidation is a list of validation methods for - /// CustomResources. - /// - public partial class V1beta1CustomResourceValidation - { - /// - /// Initializes a new instance of the V1beta1CustomResourceValidation - /// class. - /// - public V1beta1CustomResourceValidation() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1CustomResourceValidation - /// class. - /// - /// OpenAPIV3Schema is the OpenAPI v3 - /// schema to be validated against. - public V1beta1CustomResourceValidation(V1beta1JSONSchemaProps openAPIV3Schema = default(V1beta1JSONSchemaProps)) - { - OpenAPIV3Schema = openAPIV3Schema; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets openAPIV3Schema is the OpenAPI v3 schema to be - /// validated against. - /// - [JsonProperty(PropertyName = "openAPIV3Schema")] - public V1beta1JSONSchemaProps OpenAPIV3Schema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (OpenAPIV3Schema != null) - { - OpenAPIV3Schema.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1DaemonSet.cs b/src/generated/Models/V1beta1DaemonSet.cs deleted file mode 100644 index e6523824f..000000000 --- a/src/generated/Models/V1beta1DaemonSet.cs +++ /dev/null @@ -1,129 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED - This group version of DaemonSet is deprecated by - /// apps/v1beta2/DaemonSet. See the release notes for more information. - /// DaemonSet represents the configuration of a daemon set. - /// - public partial class V1beta1DaemonSet - { - /// - /// Initializes a new instance of the V1beta1DaemonSet class. - /// - public V1beta1DaemonSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1DaemonSet 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// The desired behavior of this daemon set. More - /// info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1beta1DaemonSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1DaemonSetSpec spec = default(V1beta1DaemonSetSpec), V1beta1DaemonSetStatus status = default(V1beta1DaemonSetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets the desired behavior of this daemon set. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1DaemonSetSpec Spec { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta1DaemonSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1DaemonSetList.cs b/src/generated/Models/V1beta1DaemonSetList.cs deleted file mode 100644 index 4ab32486e..000000000 --- a/src/generated/Models/V1beta1DaemonSetList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DaemonSetList is a collection of daemon sets. - /// - public partial class V1beta1DaemonSetList - { - /// - /// Initializes a new instance of the V1beta1DaemonSetList class. - /// - public V1beta1DaemonSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1DaemonSetList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1DaemonSetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets a list of daemon sets. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1DaemonSetSpec.cs b/src/generated/Models/V1beta1DaemonSetSpec.cs deleted file mode 100644 index 4a38765a1..000000000 --- a/src/generated/Models/V1beta1DaemonSetSpec.cs +++ /dev/null @@ -1,136 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DaemonSetSpec is the specification of a daemon set. - /// - public partial class V1beta1DaemonSetSpec - { - /// - /// Initializes a new instance of the V1beta1DaemonSetSpec class. - /// - public V1beta1DaemonSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1DaemonSetSpec class. - /// - /// 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. - /// A label query over pods that are managed by - /// the daemon set. Must match in order to be controlled. If empty, - /// defaulted to labels on Pod template. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// DEPRECATED. A sequence number - /// representing a specific generation of the template. Populated by - /// the system. It can be set only during the creation. - /// An update strategy to replace existing - /// DaemonSet pods with new pods. - public V1beta1DaemonSetSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), long? templateGeneration = default(long?), V1beta1DaemonSetUpdateStrategy updateStrategy = default(V1beta1DaemonSetUpdateStrategy)) - { - MinReadySeconds = minReadySeconds; - RevisionHistoryLimit = revisionHistoryLimit; - Selector = selector; - Template = template; - TemplateGeneration = templateGeneration; - UpdateStrategy = updateStrategy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets a label query over pods that are managed by the daemon - /// set. Must match in order to be controlled. 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 V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets DEPRECATED. A sequence number representing a specific - /// generation of the template. Populated by the system. It can be set - /// only during the creation. - /// - [JsonProperty(PropertyName = "templateGeneration")] - public long? TemplateGeneration { get; set; } - - /// - /// Gets or sets an update strategy to replace existing DaemonSet pods - /// with new pods. - /// - [JsonProperty(PropertyName = "updateStrategy")] - public V1beta1DaemonSetUpdateStrategy UpdateStrategy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1DaemonSetStatus.cs b/src/generated/Models/V1beta1DaemonSetStatus.cs deleted file mode 100644 index 87d483685..000000000 --- a/src/generated/Models/V1beta1DaemonSetStatus.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DaemonSetStatus represents the current status of a daemon set. - /// - public partial class V1beta1DaemonSetStatus - { - /// - /// Initializes a new instance of the V1beta1DaemonSetStatus class. - /// - public V1beta1DaemonSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1DaemonSetStatus 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. - /// 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 V1beta1DaemonSetStatus(int currentNumberScheduled, int desiredNumberScheduled, int numberMisscheduled, int numberReady, int? collisionCount = default(int?), int? numberAvailable = default(int?), int? numberUnavailable = default(int?), long? observedGeneration = default(long?), int? updatedNumberScheduled = default(int?)) - { - CollisionCount = collisionCount; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the most recent generation observed by the daemon set - /// controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta1DaemonSetUpdateStrategy.cs b/src/generated/Models/V1beta1DaemonSetUpdateStrategy.cs deleted file mode 100644 index c89cf0e2f..000000000 --- a/src/generated/Models/V1beta1DaemonSetUpdateStrategy.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class V1beta1DaemonSetUpdateStrategy - { - /// - /// Initializes a new instance of the V1beta1DaemonSetUpdateStrategy - /// class. - /// - public V1beta1DaemonSetUpdateStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1DaemonSetUpdateStrategy - /// class. - /// - /// Rolling update config params. Present - /// only if type = "RollingUpdate". - /// Type of daemon set update. Can be - /// "RollingUpdate" or "OnDelete". Default is OnDelete. - public V1beta1DaemonSetUpdateStrategy(V1beta1RollingUpdateDaemonSet rollingUpdate = default(V1beta1RollingUpdateDaemonSet), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rolling update config params. Present only if type = - /// "RollingUpdate". - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1beta1RollingUpdateDaemonSet RollingUpdate { get; set; } - - /// - /// Gets or sets type of daemon set update. Can be "RollingUpdate" or - /// "OnDelete". Default is OnDelete. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1Eviction.cs b/src/generated/Models/V1beta1Eviction.cs deleted file mode 100644 index ee28cc248..000000000 --- a/src/generated/Models/V1beta1Eviction.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta1Eviction - { - /// - /// Initializes a new instance of the V1beta1Eviction class. - /// - public V1beta1Eviction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Eviction 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/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/api-conventions.md#types-kinds - /// ObjectMeta describes the pod that is being - /// evicted. - public V1beta1Eviction(string apiVersion = default(string), V1DeleteOptions deleteOptions = default(V1DeleteOptions), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - DeleteOptions = deleteOptions; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets deleteOptions may be provided - /// - [JsonProperty(PropertyName = "deleteOptions")] - public V1DeleteOptions DeleteOptions { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1ExternalDocumentation.cs b/src/generated/Models/V1beta1ExternalDocumentation.cs deleted file mode 100644 index eec61dfe1..000000000 --- a/src/generated/Models/V1beta1ExternalDocumentation.cs +++ /dev/null @@ -1,54 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ExternalDocumentation allows referencing an external resource for - /// extended documentation. - /// - public partial class V1beta1ExternalDocumentation - { - /// - /// Initializes a new instance of the V1beta1ExternalDocumentation - /// class. - /// - public V1beta1ExternalDocumentation() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ExternalDocumentation - /// class. - /// - public V1beta1ExternalDocumentation(string description = default(string), string url = default(string)) - { - 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; } - - } -} diff --git a/src/generated/Models/V1beta1FSGroupStrategyOptions.cs b/src/generated/Models/V1beta1FSGroupStrategyOptions.cs deleted file mode 100644 index 468a03839..000000000 --- a/src/generated/Models/V1beta1FSGroupStrategyOptions.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// Rule is the strategy that will dictate what - /// FSGroup is used in the SecurityContext. - public V1beta1FSGroupStrategyOptions(IList ranges = default(IList), string rule = default(string)) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// Gets or sets rule is the strategy that will dictate what FSGroup is - /// used in the SecurityContext. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1HTTPIngressPath.cs b/src/generated/Models/V1beta1HTTPIngressPath.cs deleted file mode 100644 index d10579b5c..000000000 --- a/src/generated/Models/V1beta1HTTPIngressPath.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// HTTPIngressPath associates a path regex with a backend. Incoming urls - /// matching the path are forwarded to the backend. - /// - public partial class V1beta1HTTPIngressPath - { - /// - /// Initializes a new instance of the V1beta1HTTPIngressPath class. - /// - public V1beta1HTTPIngressPath() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1HTTPIngressPath class. - /// - /// Backend defines the referenced service - /// endpoint to which the traffic will be forwarded to. - /// Path is an extended POSIX regex as defined by - /// IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the - /// perl syntax) 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 '/'. If unspecified, the path defaults to a catch - /// all sending traffic to the backend. - public V1beta1HTTPIngressPath(V1beta1IngressBackend backend, string path = default(string)) - { - Backend = backend; - Path = path; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets backend defines the referenced service endpoint to - /// which the traffic will be forwarded to. - /// - [JsonProperty(PropertyName = "backend")] - public V1beta1IngressBackend Backend { get; set; } - - /// - /// Gets or sets path is an extended POSIX regex as defined by IEEE Std - /// 1003.1, (i.e this follows the egrep/unix syntax, not the perl - /// syntax) 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 '/'. - /// If unspecified, the path defaults to a catch all sending traffic to - /// the backend. - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Backend == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Backend"); - } - if (Backend != null) - { - Backend.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1HTTPIngressRuleValue.cs b/src/generated/Models/V1beta1HTTPIngressRuleValue.cs deleted file mode 100644 index 04b447ef2..000000000 --- a/src/generated/Models/V1beta1HTTPIngressRuleValue.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1HTTPIngressRuleValue - { - /// - /// Initializes a new instance of the V1beta1HTTPIngressRuleValue - /// class. - /// - public V1beta1HTTPIngressRuleValue() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1HTTPIngressRuleValue - /// class. - /// - /// A collection of paths that map requests to - /// backends. - public V1beta1HTTPIngressRuleValue(IList paths) - { - Paths = paths; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Paths"); - } - if (Paths != null) - { - foreach (var element in Paths) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1HostPortRange.cs b/src/generated/Models/V1beta1HostPortRange.cs deleted file mode 100644 index 7c54f4a98..000000000 --- a/src/generated/Models/V1beta1HostPortRange.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Host Port Range 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(); - - /// - /// Gets or sets max is the end of the range, inclusive. - /// - [JsonProperty(PropertyName = "max")] - public int Max { get; set; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta1IDRange.cs b/src/generated/Models/V1beta1IDRange.cs deleted file mode 100644 index ed007716f..000000000 --- a/src/generated/Models/V1beta1IDRange.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ID Range 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(); - - /// - /// Gets or sets max is the end of the range, inclusive. - /// - [JsonProperty(PropertyName = "max")] - public long Max { get; set; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta1IPBlock.cs b/src/generated/Models/V1beta1IPBlock.cs deleted file mode 100644 index 5a03dd87e..000000000 --- a/src/generated/Models/V1beta1IPBlock.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") 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 V1beta1IPBlock - { - /// - /// Initializes a new instance of the V1beta1IPBlock class. - /// - public V1beta1IPBlock() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IPBlock class. - /// - /// CIDR is a string representing the IP Block Valid - /// examples are "192.168.1.1/24" - /// Except is a slice of CIDRs that should not be - /// included within an IP Block Valid examples are "192.168.1.1/24" - /// Except values will be rejected if they are outside the CIDR - /// range - public V1beta1IPBlock(string cidr, IList except = default(IList)) - { - Cidr = cidr; - Except = except; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets CIDR is a string representing the IP Block Valid - /// examples are "192.168.1.1/24" - /// - [JsonProperty(PropertyName = "cidr")] - public string Cidr { get; set; } - - /// - /// Gets or sets except is a slice of CIDRs that should not be included - /// within an IP Block Valid examples are "192.168.1.1/24" 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() - { - if (Cidr == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Cidr"); - } - } - } -} diff --git a/src/generated/Models/V1beta1Ingress.cs b/src/generated/Models/V1beta1Ingress.cs deleted file mode 100644 index 5709d2149..000000000 --- a/src/generated/Models/V1beta1Ingress.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta1Ingress - { - /// - /// Initializes a new instance of the V1beta1Ingress class. - /// - public V1beta1Ingress() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Ingress 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Spec is the desired state of the Ingress. More - /// info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// Status is the current state of the Ingress. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1beta1Ingress(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1IngressSpec spec = default(V1beta1IngressSpec), V1beta1IngressStatus status = default(V1beta1IngressStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec is the desired state of the Ingress. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1IngressSpec Spec { get; set; } - - /// - /// Gets or sets status is the current state of the Ingress. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta1IngressStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1IngressBackend.cs b/src/generated/Models/V1beta1IngressBackend.cs deleted file mode 100644 index d7951bb01..000000000 --- a/src/generated/Models/V1beta1IngressBackend.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// IngressBackend describes all endpoints for a given service and port. - /// - public partial class V1beta1IngressBackend - { - /// - /// Initializes a new instance of the V1beta1IngressBackend class. - /// - public V1beta1IngressBackend() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IngressBackend class. - /// - /// Specifies the name of the referenced - /// service. - /// Specifies the port of the referenced - /// service. - public V1beta1IngressBackend(string serviceName, IntstrIntOrString servicePort) - { - ServiceName = serviceName; - ServicePort = servicePort; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets specifies the name of the referenced service. - /// - [JsonProperty(PropertyName = "serviceName")] - public string ServiceName { get; set; } - - /// - /// Gets or sets specifies the port of the referenced service. - /// - [JsonProperty(PropertyName = "servicePort")] - public IntstrIntOrString ServicePort { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (ServiceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServiceName"); - } - if (ServicePort == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServicePort"); - } - } - } -} diff --git a/src/generated/Models/V1beta1IngressList.cs b/src/generated/Models/V1beta1IngressList.cs deleted file mode 100644 index 06e437b52..000000000 --- a/src/generated/Models/V1beta1IngressList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// IngressList is a collection of Ingress. - /// - public partial class V1beta1IngressList - { - /// - /// Initializes a new instance of the V1beta1IngressList class. - /// - public V1beta1IngressList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IngressList 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1IngressList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of Ingress. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1IngressRule.cs b/src/generated/Models/V1beta1IngressRule.cs deleted file mode 100644 index 3dc46a311..000000000 --- a/src/generated/Models/V1beta1IngressRule.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta1IngressRule - { - /// - /// Initializes a new instance of the V1beta1IngressRule class. - /// - public V1beta1IngressRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IngressRule 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 the RFC: 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. - public V1beta1IngressRule(string host = default(string), V1beta1HTTPIngressRuleValue http = default(V1beta1HTTPIngressRuleValue)) - { - Host = host; - Http = http; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 the RFC: 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. - /// - [JsonProperty(PropertyName = "host")] - public string Host { get; set; } - - /// - /// - [JsonProperty(PropertyName = "http")] - public V1beta1HTTPIngressRuleValue Http { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Http != null) - { - Http.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1IngressSpec.cs b/src/generated/Models/V1beta1IngressSpec.cs deleted file mode 100644 index e92b6a3e7..000000000 --- a/src/generated/Models/V1beta1IngressSpec.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// IngressSpec describes the Ingress the user wishes to exist. - /// - public partial class V1beta1IngressSpec - { - /// - /// Initializes a new instance of the V1beta1IngressSpec class. - /// - public V1beta1IngressSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IngressSpec class. - /// - /// A default backend capable of servicing - /// requests that don't match any rule. At least one of 'backend' or - /// 'rules' must be specified. This field is optional to allow the - /// loadbalancer controller or defaulting logic to specify a global - /// default. - /// 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 V1beta1IngressSpec(V1beta1IngressBackend backend = default(V1beta1IngressBackend), IList rules = default(IList), IList tls = default(IList)) - { - Backend = backend; - Rules = rules; - Tls = tls; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a default backend capable of servicing requests that - /// don't match any rule. At least one of 'backend' or 'rules' must be - /// specified. This field is optional to allow the loadbalancer - /// controller or defaulting logic to specify a global default. - /// - [JsonProperty(PropertyName = "backend")] - public V1beta1IngressBackend Backend { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Backend != null) - { - Backend.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1IngressStatus.cs b/src/generated/Models/V1beta1IngressStatus.cs deleted file mode 100644 index 93e53b3ba..000000000 --- a/src/generated/Models/V1beta1IngressStatus.cs +++ /dev/null @@ -1,49 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// IngressStatus describe the current state of the Ingress. - /// - public partial class V1beta1IngressStatus - { - /// - /// Initializes a new instance of the V1beta1IngressStatus class. - /// - public V1beta1IngressStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IngressStatus class. - /// - /// LoadBalancer contains the current status - /// of the load-balancer. - public V1beta1IngressStatus(V1LoadBalancerStatus loadBalancer = default(V1LoadBalancerStatus)) - { - LoadBalancer = loadBalancer; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets loadBalancer contains the current status of the - /// load-balancer. - /// - [JsonProperty(PropertyName = "loadBalancer")] - public V1LoadBalancerStatus LoadBalancer { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1IngressTLS.cs b/src/generated/Models/V1beta1IngressTLS.cs deleted file mode 100644 index 3039b003e..000000000 --- a/src/generated/Models/V1beta1IngressTLS.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// IngressTLS describes the transport layer security associated with an - /// Ingress. - /// - public partial class V1beta1IngressTLS - { - /// - /// Initializes a new instance of the V1beta1IngressTLS class. - /// - public V1beta1IngressTLS() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1IngressTLS 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 SSL traffic on 443. Field is left optional to allow - /// SSL 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 V1beta1IngressTLS(IList hosts = default(IList), string secretName = default(string)) - { - Hosts = hosts; - SecretName = secretName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets secretName is the name of the secret used to terminate - /// SSL traffic on 443. Field is left optional to allow SSL 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; } - - } -} diff --git a/src/generated/Models/V1beta1JSON.cs b/src/generated/Models/V1beta1JSON.cs deleted file mode 100644 index 89c5ecdd3..000000000 --- a/src/generated/Models/V1beta1JSON.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// JSON represents any valid JSON value. These types are supported: bool, - /// int64, float64, string, []interface{}, map[string]interface{} and nil. - /// - public partial class V1beta1JSON - { - /// - /// Initializes a new instance of the V1beta1JSON class. - /// - public V1beta1JSON() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1JSON class. - /// - public V1beta1JSON(byte[] raw) - { - Raw = raw; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "Raw")] - public byte[] Raw { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Raw == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Raw"); - } - } - } -} diff --git a/src/generated/Models/V1beta1JSONSchemaProps.cs b/src/generated/Models/V1beta1JSONSchemaProps.cs deleted file mode 100644 index 8e8c55e47..000000000 --- a/src/generated/Models/V1beta1JSONSchemaProps.cs +++ /dev/null @@ -1,371 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// JSONSchemaProps is a JSON-Schema following Specification Draft 4 - /// (http://json-schema.org/). - /// - public partial class V1beta1JSONSchemaProps - { - /// - /// Initializes a new instance of the V1beta1JSONSchemaProps class. - /// - public V1beta1JSONSchemaProps() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1JSONSchemaProps class. - /// - public V1beta1JSONSchemaProps(string refProperty = default(string), string schema = default(string), V1beta1JSONSchemaPropsOrBool additionalItems = default(V1beta1JSONSchemaPropsOrBool), V1beta1JSONSchemaPropsOrBool additionalProperties = default(V1beta1JSONSchemaPropsOrBool), IList allOf = default(IList), IList anyOf = default(IList), V1beta1JSON defaultProperty = default(V1beta1JSON), IDictionary definitions = default(IDictionary), IDictionary dependencies = default(IDictionary), string description = default(string), IList enumProperty = default(IList), V1beta1JSON example = default(V1beta1JSON), bool? exclusiveMaximum = default(bool?), bool? exclusiveMinimum = default(bool?), V1beta1ExternalDocumentation externalDocs = default(V1beta1ExternalDocumentation), string format = default(string), string id = default(string), V1beta1JSONSchemaPropsOrArray items = default(V1beta1JSONSchemaPropsOrArray), long? maxItems = default(long?), long? maxLength = default(long?), long? maxProperties = default(long?), double? maximum = default(double?), long? minItems = default(long?), long? minLength = default(long?), long? minProperties = default(long?), double? minimum = default(double?), double? multipleOf = default(double?), V1beta1JSONSchemaProps not = default(V1beta1JSONSchemaProps), IList oneOf = default(IList), string pattern = default(string), IDictionary patternProperties = default(IDictionary), IDictionary properties = default(IDictionary), IList required = default(IList), string title = default(string), string type = default(string), bool? uniqueItems = default(bool?)) - { - 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; - OneOf = oneOf; - Pattern = pattern; - PatternProperties = patternProperties; - Properties = properties; - Required = required; - Title = title; - Type = type; - UniqueItems = uniqueItems; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "$ref")] - public string RefProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "$schema")] - public string Schema { get; set; } - - /// - /// - [JsonProperty(PropertyName = "additionalItems")] - public V1beta1JSONSchemaPropsOrBool AdditionalItems { get; set; } - - /// - /// - [JsonProperty(PropertyName = "additionalProperties")] - public V1beta1JSONSchemaPropsOrBool AdditionalProperties { get; set; } - - /// - /// - [JsonProperty(PropertyName = "allOf")] - public IList AllOf { get; set; } - - /// - /// - [JsonProperty(PropertyName = "anyOf")] - public IList AnyOf { get; set; } - - /// - /// - [JsonProperty(PropertyName = "default")] - public V1beta1JSON 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; } - - /// - /// - [JsonProperty(PropertyName = "example")] - public V1beta1JSON Example { get; set; } - - /// - /// - [JsonProperty(PropertyName = "exclusiveMaximum")] - public bool? ExclusiveMaximum { get; set; } - - /// - /// - [JsonProperty(PropertyName = "exclusiveMinimum")] - public bool? ExclusiveMinimum { get; set; } - - /// - /// - [JsonProperty(PropertyName = "externalDocs")] - public V1beta1ExternalDocumentation ExternalDocs { get; set; } - - /// - /// - [JsonProperty(PropertyName = "format")] - public string Format { get; set; } - - /// - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "items")] - public V1beta1JSONSchemaPropsOrArray 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 V1beta1JSONSchemaProps Not { 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; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (AdditionalItems != null) - { - AdditionalItems.Validate(); - } - if (AdditionalProperties != null) - { - AdditionalProperties.Validate(); - } - if (AllOf != null) - { - foreach (var element in AllOf) - { - if (element != null) - { - element.Validate(); - } - } - } - if (AnyOf != null) - { - foreach (var element1 in AnyOf) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - if (DefaultProperty != null) - { - DefaultProperty.Validate(); - } - if (Definitions != null) - { - foreach (var valueElement in Definitions.Values) - { - if (valueElement != null) - { - valueElement.Validate(); - } - } - } - if (Dependencies != null) - { - foreach (var valueElement1 in Dependencies.Values) - { - if (valueElement1 != null) - { - valueElement1.Validate(); - } - } - } - if (EnumProperty != null) - { - foreach (var element2 in EnumProperty) - { - if (element2 != null) - { - element2.Validate(); - } - } - } - if (Example != null) - { - Example.Validate(); - } - if (Items != null) - { - Items.Validate(); - } - if (Not != null) - { - Not.Validate(); - } - if (OneOf != null) - { - foreach (var element3 in OneOf) - { - if (element3 != null) - { - element3.Validate(); - } - } - } - if (PatternProperties != null) - { - foreach (var valueElement2 in PatternProperties.Values) - { - if (valueElement2 != null) - { - valueElement2.Validate(); - } - } - } - if (Properties != null) - { - foreach (var valueElement3 in Properties.Values) - { - if (valueElement3 != null) - { - valueElement3.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1JSONSchemaPropsOrArray.cs b/src/generated/Models/V1beta1JSONSchemaPropsOrArray.cs deleted file mode 100644 index c3551411b..000000000 --- a/src/generated/Models/V1beta1JSONSchemaPropsOrArray.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// JSONSchemaPropsOrArray represents a value that can either be a - /// JSONSchemaProps or an array of JSONSchemaProps. Mainly here for - /// serialization purposes. - /// - public partial class V1beta1JSONSchemaPropsOrArray - { - /// - /// Initializes a new instance of the V1beta1JSONSchemaPropsOrArray - /// class. - /// - public V1beta1JSONSchemaPropsOrArray() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1JSONSchemaPropsOrArray - /// class. - /// - public V1beta1JSONSchemaPropsOrArray(IList jSONSchemas, V1beta1JSONSchemaProps schema) - { - JSONSchemas = jSONSchemas; - Schema = schema; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "JSONSchemas")] - public IList JSONSchemas { get; set; } - - /// - /// - [JsonProperty(PropertyName = "Schema")] - public V1beta1JSONSchemaProps Schema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (JSONSchemas == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "JSONSchemas"); - } - if (Schema == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Schema"); - } - if (JSONSchemas != null) - { - foreach (var element in JSONSchemas) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Schema != null) - { - Schema.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1JSONSchemaPropsOrBool.cs b/src/generated/Models/V1beta1JSONSchemaPropsOrBool.cs deleted file mode 100644 index 532852dd6..000000000 --- a/src/generated/Models/V1beta1JSONSchemaPropsOrBool.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. - /// Defaults to true for the boolean property. - /// - public partial class V1beta1JSONSchemaPropsOrBool - { - /// - /// Initializes a new instance of the V1beta1JSONSchemaPropsOrBool - /// class. - /// - public V1beta1JSONSchemaPropsOrBool() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1JSONSchemaPropsOrBool - /// class. - /// - public V1beta1JSONSchemaPropsOrBool(bool allows, V1beta1JSONSchemaProps schema) - { - Allows = allows; - Schema = schema; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "Allows")] - public bool Allows { get; set; } - - /// - /// - [JsonProperty(PropertyName = "Schema")] - public V1beta1JSONSchemaProps Schema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Schema == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Schema"); - } - if (Schema != null) - { - Schema.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1JSONSchemaPropsOrStringArray.cs b/src/generated/Models/V1beta1JSONSchemaPropsOrStringArray.cs deleted file mode 100644 index 355559d64..000000000 --- a/src/generated/Models/V1beta1JSONSchemaPropsOrStringArray.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string - /// array. - /// - public partial class V1beta1JSONSchemaPropsOrStringArray - { - /// - /// Initializes a new instance of the - /// V1beta1JSONSchemaPropsOrStringArray class. - /// - public V1beta1JSONSchemaPropsOrStringArray() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1JSONSchemaPropsOrStringArray class. - /// - public V1beta1JSONSchemaPropsOrStringArray(IList property, V1beta1JSONSchemaProps schema) - { - Property = property; - Schema = schema; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "Property")] - public IList Property { get; set; } - - /// - /// - [JsonProperty(PropertyName = "Schema")] - public V1beta1JSONSchemaProps Schema { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Property == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Property"); - } - if (Schema == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Schema"); - } - if (Schema != null) - { - Schema.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1JobTemplateSpec.cs b/src/generated/Models/V1beta1JobTemplateSpec.cs deleted file mode 100644 index b9624bdf7..000000000 --- a/src/generated/Models/V1beta1JobTemplateSpec.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/api-conventions.md#metadata - /// Specification of the desired behavior of the - /// job. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V1beta1JobTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec)) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets standard object's metadata of the jobs created from - /// this template. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the job. More - /// info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1LocalSubjectAccessReview.cs b/src/generated/Models/V1beta1LocalSubjectAccessReview.cs deleted file mode 100644 index 407904689..000000000 --- a/src/generated/Models/V1beta1LocalSubjectAccessReview.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 V1beta1LocalSubjectAccessReview - { - /// - /// Initializes a new instance of the V1beta1LocalSubjectAccessReview - /// class. - /// - public V1beta1LocalSubjectAccessReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1LocalSubjectAccessReview - /// 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request is allowed or not - public V1beta1LocalSubjectAccessReview(V1beta1SubjectAccessReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1SubjectAccessReviewStatus status = default(V1beta1SubjectAccessReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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 V1beta1SubjectAccessReviewSpec Spec { get; set; } - - /// - /// Gets or sets status is filled in by the server and indicates - /// whether the request is allowed or not - /// - [JsonProperty(PropertyName = "status")] - public V1beta1SubjectAccessReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicy.cs b/src/generated/Models/V1beta1NetworkPolicy.cs deleted file mode 100644 index e0c149cec..000000000 --- a/src/generated/Models/V1beta1NetworkPolicy.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// NetworkPolicy describes what network traffic is allowed for a set of - /// Pods - /// - public partial class V1beta1NetworkPolicy - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicy class. - /// - public V1beta1NetworkPolicy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicy 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Specification of the desired behavior for this - /// NetworkPolicy. - public V1beta1NetworkPolicy(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1NetworkPolicySpec spec = default(V1beta1NetworkPolicySpec)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior for this - /// NetworkPolicy. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1NetworkPolicySpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicyEgressRule.cs b/src/generated/Models/V1beta1NetworkPolicyEgressRule.cs deleted file mode 100644 index a012377a1..000000000 --- a/src/generated/Models/V1beta1NetworkPolicyEgressRule.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1NetworkPolicyEgressRule - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicyEgressRule - /// class. - /// - public V1beta1NetworkPolicyEgressRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicyEgressRule - /// 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 V1beta1NetworkPolicyEgressRule(IList ports = default(IList), IList to = default(IList)) - { - Ports = ports; - To = to; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicyIngressRule.cs b/src/generated/Models/V1beta1NetworkPolicyIngressRule.cs deleted file mode 100644 index 2fed65110..000000000 --- a/src/generated/Models/V1beta1NetworkPolicyIngressRule.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// This NetworkPolicyIngressRule matches traffic if and only if the - /// traffic matches both ports AND from. - /// - public partial class V1beta1NetworkPolicyIngressRule - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicyIngressRule - /// class. - /// - public V1beta1NetworkPolicyIngressRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicyIngressRule - /// 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 on 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 V1beta1NetworkPolicyIngressRule(IList fromProperty = default(IList), IList ports = default(IList)) - { - FromProperty = fromProperty; - Ports = ports; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 on 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; } - - /// - /// Gets or sets 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; } - - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicyList.cs b/src/generated/Models/V1beta1NetworkPolicyList.cs deleted file mode 100644 index 14f2ebd92..000000000 --- a/src/generated/Models/V1beta1NetworkPolicyList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Network Policy List is a list of NetworkPolicy objects. - /// - public partial class V1beta1NetworkPolicyList - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicyList class. - /// - public V1beta1NetworkPolicyList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicyList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1NetworkPolicyList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicyPeer.cs b/src/generated/Models/V1beta1NetworkPolicyPeer.cs deleted file mode 100644 index bc9945571..000000000 --- a/src/generated/Models/V1beta1NetworkPolicyPeer.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class V1beta1NetworkPolicyPeer - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicyPeer class. - /// - public V1beta1NetworkPolicyPeer() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicyPeer class. - /// - /// IPBlock defines policy on a particular - /// IPBlock - /// Selects Namespaces using cluster - /// scoped-labels. This matches all pods in all namespaces selected by - /// this label selector. This field follows standard label selector - /// semantics. If present but empty, this selector selects all - /// namespaces. - /// This is a label selector which selects - /// Pods in this namespace. This field follows standard label selector - /// semantics. If present but empty, this selector selects all pods in - /// this namespace. - public V1beta1NetworkPolicyPeer(V1beta1IPBlock ipBlock = default(V1beta1IPBlock), V1LabelSelector namespaceSelector = default(V1LabelSelector), V1LabelSelector podSelector = default(V1LabelSelector)) - { - IpBlock = ipBlock; - NamespaceSelector = namespaceSelector; - PodSelector = podSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets iPBlock defines policy on a particular IPBlock - /// - [JsonProperty(PropertyName = "ipBlock")] - public V1beta1IPBlock IpBlock { get; set; } - - /// - /// Gets or sets selects Namespaces using cluster scoped-labels. This - /// matches all pods in all namespaces selected by this label selector. - /// This field follows standard label selector semantics. If present - /// but empty, this selector selects all namespaces. - /// - [JsonProperty(PropertyName = "namespaceSelector")] - public V1LabelSelector NamespaceSelector { get; set; } - - /// - /// Gets or sets this is a label selector which selects Pods in this - /// namespace. This field follows standard label selector semantics. If - /// present but empty, this selector selects all pods in this - /// namespace. - /// - [JsonProperty(PropertyName = "podSelector")] - public V1LabelSelector PodSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (IpBlock != null) - { - IpBlock.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicyPort.cs b/src/generated/Models/V1beta1NetworkPolicyPort.cs deleted file mode 100644 index 12de72b37..000000000 --- a/src/generated/Models/V1beta1NetworkPolicyPort.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class V1beta1NetworkPolicyPort - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicyPort class. - /// - public V1beta1NetworkPolicyPort() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicyPort class. - /// - /// If specified, 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. - /// Optional. The protocol (TCP or UDP) which - /// traffic must match. If not specified, this field defaults to - /// TCP. - public V1beta1NetworkPolicyPort(IntstrIntOrString port = default(IntstrIntOrString), string protocol = default(string)) - { - Port = port; - Protocol = protocol; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets if specified, 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; } - - /// - /// Gets or sets optional. The protocol (TCP or UDP) which traffic - /// must match. If not specified, this field defaults to TCP. - /// - [JsonProperty(PropertyName = "protocol")] - public string Protocol { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1NetworkPolicySpec.cs b/src/generated/Models/V1beta1NetworkPolicySpec.cs deleted file mode 100644 index c7b87521b..000000000 --- a/src/generated/Models/V1beta1NetworkPolicySpec.cs +++ /dev/null @@ -1,148 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class V1beta1NetworkPolicySpec - { - /// - /// Initializes a new instance of the V1beta1NetworkPolicySpec class. - /// - public V1beta1NetworkPolicySpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NetworkPolicySpec 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 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 V1beta1NetworkPolicySpec(V1LabelSelector podSelector, IList egress = default(IList), IList ingress = default(IList), IList policyTypes = default(IList)) - { - Egress = egress; - Ingress = ingress; - PodSelector = podSelector; - PolicyTypes = policyTypes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - } - } -} diff --git a/src/generated/Models/V1beta1NonResourceAttributes.cs b/src/generated/Models/V1beta1NonResourceAttributes.cs deleted file mode 100644 index 9565d00f4..000000000 --- a/src/generated/Models/V1beta1NonResourceAttributes.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// NonResourceAttributes includes the authorization attributes available - /// for non-resource requests to the Authorizer interface - /// - public partial class V1beta1NonResourceAttributes - { - /// - /// Initializes a new instance of the V1beta1NonResourceAttributes - /// class. - /// - public V1beta1NonResourceAttributes() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NonResourceAttributes - /// class. - /// - /// Path is the URL path of the request - /// Verb is the standard HTTP verb - public V1beta1NonResourceAttributes(string path = default(string), string verb = default(string)) - { - Path = path; - Verb = verb; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets path is the URL path of the request - /// - [JsonProperty(PropertyName = "path")] - public string Path { get; set; } - - /// - /// Gets or sets verb is the standard HTTP verb - /// - [JsonProperty(PropertyName = "verb")] - public string Verb { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1NonResourceRule.cs b/src/generated/Models/V1beta1NonResourceRule.cs deleted file mode 100644 index 16dfc1d5c..000000000 --- a/src/generated/Models/V1beta1NonResourceRule.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// NonResourceRule holds information that describes a rule for the - /// non-resource - /// - public partial class V1beta1NonResourceRule - { - /// - /// Initializes a new instance of the V1beta1NonResourceRule class. - /// - public V1beta1NonResourceRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1NonResourceRule 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 V1beta1NonResourceRule(IList verbs, IList nonResourceURLs = default(IList)) - { - NonResourceURLs = nonResourceURLs; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1beta1PodDisruptionBudget.cs b/src/generated/Models/V1beta1PodDisruptionBudget.cs deleted file mode 100644 index c4174bb09..000000000 --- a/src/generated/Models/V1beta1PodDisruptionBudget.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// Specification of the desired behavior of the - /// PodDisruptionBudget. - /// Most recently observed status of the - /// PodDisruptionBudget. - public V1beta1PodDisruptionBudget(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1PodDisruptionBudgetSpec spec = default(V1beta1PodDisruptionBudgetSpec), V1beta1PodDisruptionBudgetStatus status = default(V1beta1PodDisruptionBudgetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the - /// PodDisruptionBudget. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1PodDisruptionBudgetSpec Spec { get; set; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1PodDisruptionBudgetList.cs b/src/generated/Models/V1beta1PodDisruptionBudgetList.cs deleted file mode 100644 index e9c95e45c..000000000 --- a/src/generated/Models/V1beta1PodDisruptionBudgetList.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - public V1beta1PodDisruptionBudgetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1PodDisruptionBudgetSpec.cs b/src/generated/Models/V1beta1PodDisruptionBudgetSpec.cs deleted file mode 100644 index c1689b6dd..000000000 --- a/src/generated/Models/V1beta1PodDisruptionBudgetSpec.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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. - public V1beta1PodDisruptionBudgetSpec(IntstrIntOrString maxUnavailable = default(IntstrIntOrString), IntstrIntOrString minAvailable = default(IntstrIntOrString), V1LabelSelector selector = default(V1LabelSelector)) - { - MaxUnavailable = maxUnavailable; - MinAvailable = minAvailable; - Selector = selector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets label query over pods whose evictions are managed by - /// the disruption budget. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1PodDisruptionBudgetStatus.cs b/src/generated/Models/V1beta1PodDisruptionBudgetStatus.cs deleted file mode 100644 index 6afaba6d2..000000000 --- a/src/generated/Models/V1beta1PodDisruptionBudgetStatus.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 - /// 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. - /// Number of pod disruptions that are - /// currently allowed. - /// total number of pods counted by this - /// disruption budget - /// Most recent generation observed - /// when updating this PDB status. PodDisruptionsAllowed and other - /// status informatio is valid only if observedGeneration equals to - /// PDB's object generation. - public V1beta1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, IDictionary disruptedPods, int disruptionsAllowed, int expectedPods, long? observedGeneration = default(long?)) - { - 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(); - - /// - /// Gets or sets current number of healthy pods - /// - [JsonProperty(PropertyName = "currentHealthy")] - public int CurrentHealthy { get; set; } - - /// - /// Gets or sets minimum desired number of healthy pods - /// - [JsonProperty(PropertyName = "desiredHealthy")] - public int DesiredHealthy { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets number of pod disruptions that are currently allowed. - /// - [JsonProperty(PropertyName = "disruptionsAllowed")] - public int DisruptionsAllowed { get; set; } - - /// - /// Gets or sets total number of pods counted by this disruption budget - /// - [JsonProperty(PropertyName = "expectedPods")] - public int ExpectedPods { get; set; } - - /// - /// Gets or sets most recent generation observed when updating this PDB - /// status. PodDisruptionsAllowed and other status informatio 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 (DisruptedPods == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "DisruptedPods"); - } - } - } -} diff --git a/src/generated/Models/V1beta1PodSecurityPolicy.cs b/src/generated/Models/V1beta1PodSecurityPolicy.cs deleted file mode 100644 index 4490d3771..000000000 --- a/src/generated/Models/V1beta1PodSecurityPolicy.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Pod Security Policy governs the ability to make requests that affect - /// the Security Context that will be applied to a pod and container. - /// - 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// spec defines the policy enforced. - public V1beta1PodSecurityPolicy(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1PodSecurityPolicySpec spec = default(V1beta1PodSecurityPolicySpec)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the policy enforced. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1PodSecurityPolicySpec Spec { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1PodSecurityPolicyList.cs b/src/generated/Models/V1beta1PodSecurityPolicyList.cs deleted file mode 100644 index 0c3b719b6..000000000 --- a/src/generated/Models/V1beta1PodSecurityPolicyList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Pod Security Policy List 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1PodSecurityPolicyList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of schema objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1PodSecurityPolicySpec.cs b/src/generated/Models/V1beta1PodSecurityPolicySpec.cs deleted file mode 100644 index 8b35a2f73..000000000 --- a/src/generated/Models/V1beta1PodSecurityPolicySpec.cs +++ /dev/null @@ -1,285 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Pod Security Policy Spec 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. - /// 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. - /// is a white list of allowed host - /// paths. Empty indicates that all host paths may be used. - /// 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 capabiility in both DefaultAddCapabilities and - /// RequiredDropCapabilities. - /// DefaultAllowPrivilegeEscalation - /// controls the default setting for whether a process can gain more - /// privileges than its parent process. - /// 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. - /// volumes is a white list of allowed volume - /// plugins. Empty indicates that all plugins may be used. - public V1beta1PodSecurityPolicySpec(V1beta1FSGroupStrategyOptions fsGroup, V1beta1RunAsUserStrategyOptions runAsUser, V1beta1SELinuxStrategyOptions seLinux, V1beta1SupplementalGroupsStrategyOptions supplementalGroups, bool? allowPrivilegeEscalation = default(bool?), IList allowedCapabilities = default(IList), IList allowedHostPaths = default(IList), IList defaultAddCapabilities = default(IList), bool? defaultAllowPrivilegeEscalation = default(bool?), bool? hostIPC = default(bool?), bool? hostNetwork = default(bool?), bool? hostPID = default(bool?), IList hostPorts = default(IList), bool? privileged = default(bool?), bool? readOnlyRootFilesystem = default(bool?), IList requiredDropCapabilities = default(IList), IList volumes = default(IList)) - { - AllowPrivilegeEscalation = allowPrivilegeEscalation; - AllowedCapabilities = allowedCapabilities; - AllowedHostPaths = allowedHostPaths; - DefaultAddCapabilities = defaultAddCapabilities; - DefaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - FsGroup = fsGroup; - HostIPC = hostIPC; - HostNetwork = hostNetwork; - HostPID = hostPID; - HostPorts = hostPorts; - Privileged = privileged; - ReadOnlyRootFilesystem = readOnlyRootFilesystem; - RequiredDropCapabilities = requiredDropCapabilities; - RunAsUser = runAsUser; - SeLinux = seLinux; - SupplementalGroups = supplementalGroups; - Volumes = volumes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets allowPrivilegeEscalation determines if a pod can - /// request to allow privilege escalation. If unspecified, defaults to - /// true. - /// - [JsonProperty(PropertyName = "allowPrivilegeEscalation")] - public bool? AllowPrivilegeEscalation { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets is a white list of allowed host paths. Empty indicates - /// that all host paths may be used. - /// - [JsonProperty(PropertyName = "allowedHostPaths")] - public IList AllowedHostPaths { get; set; } - - /// - /// Gets or sets 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 - /// capabiility in both DefaultAddCapabilities and - /// RequiredDropCapabilities. - /// - [JsonProperty(PropertyName = "defaultAddCapabilities")] - public IList DefaultAddCapabilities { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets fSGroup is the strategy that will dictate what fs - /// group is used by the SecurityContext. - /// - [JsonProperty(PropertyName = "fsGroup")] - public V1beta1FSGroupStrategyOptions FsGroup { get; set; } - - /// - /// Gets or sets hostIPC determines if the policy allows the use of - /// HostIPC in the pod spec. - /// - [JsonProperty(PropertyName = "hostIPC")] - public bool? HostIPC { get; set; } - - /// - /// Gets or sets hostNetwork determines if the policy allows the use of - /// HostNetwork in the pod spec. - /// - [JsonProperty(PropertyName = "hostNetwork")] - public bool? HostNetwork { get; set; } - - /// - /// Gets or sets hostPID determines if the policy allows the use of - /// HostPID in the pod spec. - /// - [JsonProperty(PropertyName = "hostPID")] - public bool? HostPID { get; set; } - - /// - /// Gets or sets hostPorts determines which host port ranges are - /// allowed to be exposed. - /// - [JsonProperty(PropertyName = "hostPorts")] - public IList HostPorts { get; set; } - - /// - /// Gets or sets privileged determines if a pod can request to be run - /// as privileged. - /// - [JsonProperty(PropertyName = "privileged")] - public bool? Privileged { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets runAsUser is the strategy that will dictate the - /// allowable RunAsUser values that may be set. - /// - [JsonProperty(PropertyName = "runAsUser")] - public V1beta1RunAsUserStrategyOptions RunAsUser { get; set; } - - /// - /// Gets or sets seLinux is the strategy that will dictate the - /// allowable labels that may be set. - /// - [JsonProperty(PropertyName = "seLinux")] - public V1beta1SELinuxStrategyOptions SeLinux { get; set; } - - /// - /// Gets or sets supplementalGroups is the strategy that will dictate - /// what supplemental groups are used by the SecurityContext. - /// - [JsonProperty(PropertyName = "supplementalGroups")] - public V1beta1SupplementalGroupsStrategyOptions SupplementalGroups { get; set; } - - /// - /// Gets or sets volumes is a white list of allowed volume plugins. - /// Empty indicates that all plugins may be used. - /// - [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 (HostPorts != null) - { - foreach (var element in HostPorts) - { - if (element != null) - { - element.Validate(); - } - } - } - if (RunAsUser != null) - { - RunAsUser.Validate(); - } - if (SeLinux != null) - { - SeLinux.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1PolicyRule.cs b/src/generated/Models/V1beta1PolicyRule.cs deleted file mode 100644 index b10995a9e..000000000 --- a/src/generated/Models/V1beta1PolicyRule.cs +++ /dev/null @@ -1,125 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1PolicyRule - { - /// - /// Initializes a new instance of the V1beta1PolicyRule class. - /// - public V1beta1PolicyRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1PolicyRule class. - /// - /// Verbs is a list of Verbs that apply to ALL the - /// ResourceKinds and AttributeRestrictions contained in this rule. - /// VerbAll represents all kinds. - /// 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. ResourceAll represents all resources. - public V1beta1PolicyRule(IList verbs, IList apiGroups = default(IList), IList nonResourceURLs = default(IList), IList resourceNames = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - NonResourceURLs = nonResourceURLs; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resources is a list of resources this rule applies to. - /// ResourceAll represents all resources. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Gets or sets verbs is a list of Verbs that apply to ALL the - /// ResourceKinds and AttributeRestrictions contained in this rule. - /// VerbAll represents all kinds. - /// - [JsonProperty(PropertyName = "verbs")] - public IList Verbs { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1beta1ReplicaSet.cs b/src/generated/Models/V1beta1ReplicaSet.cs deleted file mode 100644 index c2ffe125a..000000000 --- a/src/generated/Models/V1beta1ReplicaSet.cs +++ /dev/null @@ -1,134 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED - This group version of ReplicaSet is deprecated by - /// apps/v1beta2/ReplicaSet. See the release notes for more information. - /// ReplicaSet represents the configuration of a ReplicaSet. - /// - public partial class V1beta1ReplicaSet - { - /// - /// Initializes a new instance of the V1beta1ReplicaSet class. - /// - public V1beta1ReplicaSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ReplicaSet 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/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/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/api-conventions.md#metadata - /// Spec defines the specification of the desired - /// behavior of the ReplicaSet. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1beta1ReplicaSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1ReplicaSetSpec spec = default(V1beta1ReplicaSetSpec), V1beta1ReplicaSetStatus status = default(V1beta1ReplicaSetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the specification of the desired behavior - /// of the ReplicaSet. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1ReplicaSetSpec Spec { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta1ReplicaSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1ReplicaSetCondition.cs b/src/generated/Models/V1beta1ReplicaSetCondition.cs deleted file mode 100644 index 41c25a833..000000000 --- a/src/generated/Models/V1beta1ReplicaSetCondition.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// ReplicaSetCondition describes the state of a replica set at a certain - /// point. - /// - public partial class V1beta1ReplicaSetCondition - { - /// - /// Initializes a new instance of the V1beta1ReplicaSetCondition class. - /// - public V1beta1ReplicaSetCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ReplicaSetCondition 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 V1beta1ReplicaSetCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the last time the condition transitioned from one - /// status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets a human readable message indicating details about the - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of replica set condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1beta1ReplicaSetList.cs b/src/generated/Models/V1beta1ReplicaSetList.cs deleted file mode 100644 index 601e9a197..000000000 --- a/src/generated/Models/V1beta1ReplicaSetList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ReplicaSetList is a collection of ReplicaSets. - /// - public partial class V1beta1ReplicaSetList - { - /// - /// Initializes a new instance of the V1beta1ReplicaSetList class. - /// - public V1beta1ReplicaSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ReplicaSetList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1beta1ReplicaSetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of ReplicaSets. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1ReplicaSetSpec.cs b/src/generated/Models/V1beta1ReplicaSetSpec.cs deleted file mode 100644 index d2e040b98..000000000 --- a/src/generated/Models/V1beta1ReplicaSetSpec.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ReplicaSetSpec is the specification of a ReplicaSet. - /// - public partial class V1beta1ReplicaSetSpec - { - /// - /// Initializes a new instance of the V1beta1ReplicaSetSpec class. - /// - public V1beta1ReplicaSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ReplicaSetSpec 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 replica count. If the 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 replica - /// set. 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. - /// More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - public V1beta1ReplicaSetSpec(int? minReadySeconds = default(int?), int? replicas = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1PodTemplateSpec template = default(V1PodTemplateSpec)) - { - MinReadySeconds = minReadySeconds; - Replicas = replicas; - Selector = selector; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets selector is a label query over pods that should match - /// the replica count. If the 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 replica set. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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 (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1ReplicaSetStatus.cs b/src/generated/Models/V1beta1ReplicaSetStatus.cs deleted file mode 100644 index e27f3ca9e..000000000 --- a/src/generated/Models/V1beta1ReplicaSetStatus.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ReplicaSetStatus represents the current status of a ReplicaSet. - /// - public partial class V1beta1ReplicaSetStatus - { - /// - /// Initializes a new instance of the V1beta1ReplicaSetStatus class. - /// - public V1beta1ReplicaSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ReplicaSetStatus 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 V1beta1ReplicaSetStatus(int replicas, int? availableReplicas = default(int?), IList conditions = default(IList), int? fullyLabeledReplicas = default(int?), long? observedGeneration = default(long?), int? readyReplicas = default(int?)) - { - 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(); - - /// - /// Gets or sets the number of available replicas (ready for at least - /// minReadySeconds) for this replica set. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Gets or sets represents the latest available observations of a - /// replica set's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets observedGeneration reflects the generation of the most - /// recently observed ReplicaSet. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets the number of ready replicas for this replica set. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets 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 element in Conditions) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1ResourceAttributes.cs b/src/generated/Models/V1beta1ResourceAttributes.cs deleted file mode 100644 index a34b7fc4a..000000000 --- a/src/generated/Models/V1beta1ResourceAttributes.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ResourceAttributes includes the authorization attributes available for - /// resource requests to the Authorizer interface - /// - public partial class V1beta1ResourceAttributes - { - /// - /// Initializes a new instance of the V1beta1ResourceAttributes class. - /// - public V1beta1ResourceAttributes() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ResourceAttributes 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 V1beta1ResourceAttributes(string group = default(string), string name = default(string), string namespaceProperty = default(string), string resource = default(string), string subresource = default(string), string verb = default(string), string version = default(string)) - { - 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(); - - /// - /// Gets or sets group is the API Group of the Resource. "*" means - /// all. - /// - [JsonProperty(PropertyName = "group")] - public string Group { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resource is one of the existing resource types. "*" - /// means all. - /// - [JsonProperty(PropertyName = "resource")] - public string Resource { get; set; } - - /// - /// Gets or sets subresource is one of the existing resource types. "" - /// means none. - /// - [JsonProperty(PropertyName = "subresource")] - public string Subresource { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets version is the API Version of the Resource. "*" means - /// all. - /// - [JsonProperty(PropertyName = "version")] - public string Version { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1ResourceRule.cs b/src/generated/Models/V1beta1ResourceRule.cs deleted file mode 100644 index 0526b3fd5..000000000 --- a/src/generated/Models/V1beta1ResourceRule.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1ResourceRule - { - /// - /// Initializes a new instance of the V1beta1ResourceRule class. - /// - public V1beta1ResourceRule() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ResourceRule 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. ResourceAll represents all resources. "*" means - /// all. - public V1beta1ResourceRule(IList verbs, IList apiGroups = default(IList), IList resourceNames = default(IList), IList resources = default(IList)) - { - ApiGroups = apiGroups; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets resources is a list of resources this rule applies to. - /// ResourceAll represents all resources. "*" means all. - /// - [JsonProperty(PropertyName = "resources")] - public IList Resources { get; set; } - - /// - /// Gets or sets 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() - { - if (Verbs == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Verbs"); - } - } - } -} diff --git a/src/generated/Models/V1beta1Role.cs b/src/generated/Models/V1beta1Role.cs deleted file mode 100644 index 7eee3108d..000000000 --- a/src/generated/Models/V1beta1Role.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Role is a namespaced, logical grouping of PolicyRules that can be - /// referenced as a unit by a RoleBinding. - /// - public partial class V1beta1Role - { - /// - /// Initializes a new instance of the V1beta1Role class. - /// - public V1beta1Role() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Role class. - /// - /// Rules holds all the PolicyRules for this - /// Role - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1Role(IList rules, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Rules = rules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Rules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rules"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Rules != null) - { - foreach (var element in Rules) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1RoleBinding.cs b/src/generated/Models/V1beta1RoleBinding.cs deleted file mode 100644 index 0966f764f..000000000 --- a/src/generated/Models/V1beta1RoleBinding.cs +++ /dev/null @@ -1,143 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1RoleBinding - { - /// - /// Initializes a new instance of the V1beta1RoleBinding class. - /// - public V1beta1RoleBinding() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RoleBinding 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. - /// Subjects holds references to the objects the - /// role applies to. - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1RoleBinding(V1beta1RoleRef roleRef, IList subjects, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - RoleRef = roleRef; - Subjects = subjects; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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 V1beta1RoleRef RoleRef { get; set; } - - /// - /// Gets or sets 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"); - } - if (Subjects == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Subjects"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (RoleRef != null) - { - RoleRef.Validate(); - } - if (Subjects != null) - { - foreach (var element in Subjects) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1RoleBindingList.cs b/src/generated/Models/V1beta1RoleBindingList.cs deleted file mode 100644 index ce8e1262b..000000000 --- a/src/generated/Models/V1beta1RoleBindingList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// RoleBindingList is a collection of RoleBindings - /// - public partial class V1beta1RoleBindingList - { - /// - /// Initializes a new instance of the V1beta1RoleBindingList class. - /// - public V1beta1RoleBindingList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RoleBindingList 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1RoleBindingList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of RoleBindings - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1RoleList.cs b/src/generated/Models/V1beta1RoleList.cs deleted file mode 100644 index f6505a02f..000000000 --- a/src/generated/Models/V1beta1RoleList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// RoleList is a collection of Roles - /// - public partial class V1beta1RoleList - { - /// - /// Initializes a new instance of the V1beta1RoleList class. - /// - public V1beta1RoleList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RoleList 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. - public V1beta1RoleList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is a list of Roles - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1RoleRef.cs b/src/generated/Models/V1beta1RoleRef.cs deleted file mode 100644 index cfb9d3071..000000000 --- a/src/generated/Models/V1beta1RoleRef.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// RoleRef contains information that points to the role being used - /// - public partial class V1beta1RoleRef - { - /// - /// Initializes a new instance of the V1beta1RoleRef class. - /// - public V1beta1RoleRef() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RoleRef 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 V1beta1RoleRef(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(); - - /// - /// Gets or sets aPIGroup is the group for the resource being - /// referenced - /// - [JsonProperty(PropertyName = "apiGroup")] - public string ApiGroup { get; set; } - - /// - /// Gets or sets kind is the type of resource being referenced - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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() - { - if (ApiGroup == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ApiGroup"); - } - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1beta1RollingUpdateDaemonSet.cs b/src/generated/Models/V1beta1RollingUpdateDaemonSet.cs deleted file mode 100644 index d1c4a5d1c..000000000 --- a/src/generated/Models/V1beta1RollingUpdateDaemonSet.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Spec to control the desired behavior of daemon set rolling update. - /// - public partial class V1beta1RollingUpdateDaemonSet - { - /// - /// Initializes a new instance of the V1beta1RollingUpdateDaemonSet - /// class. - /// - public V1beta1RollingUpdateDaemonSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1RollingUpdateDaemonSet - /// class. - /// - /// 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. 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 V1beta1RollingUpdateDaemonSet(IntstrIntOrString maxUnavailable = default(IntstrIntOrString)) - { - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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. 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; } - - } -} diff --git a/src/generated/Models/V1beta1RollingUpdateStatefulSetStrategy.cs b/src/generated/Models/V1beta1RollingUpdateStatefulSetStrategy.cs deleted file mode 100644 index 6b4c04f31..000000000 --- a/src/generated/Models/V1beta1RollingUpdateStatefulSetStrategy.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// RollingUpdateStatefulSetStrategy is used to communicate parameter for - /// RollingUpdateStatefulSetStrategyType. - /// - public partial class V1beta1RollingUpdateStatefulSetStrategy - { - /// - /// Initializes a new instance of the - /// V1beta1RollingUpdateStatefulSetStrategy class. - /// - public V1beta1RollingUpdateStatefulSetStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1RollingUpdateStatefulSetStrategy class. - /// - /// Partition indicates the ordinal at which - /// the StatefulSet should be partitioned. - public V1beta1RollingUpdateStatefulSetStrategy(int? partition = default(int?)) - { - Partition = partition; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets partition indicates the ordinal at which the - /// StatefulSet should be partitioned. - /// - [JsonProperty(PropertyName = "partition")] - public int? Partition { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1RunAsUserStrategyOptions.cs b/src/generated/Models/V1beta1RunAsUserStrategyOptions.cs deleted file mode 100644 index c4ff212b1..000000000 --- a/src/generated/Models/V1beta1RunAsUserStrategyOptions.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Run A sUser Strategy Options 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. - public V1beta1RunAsUserStrategyOptions(string rule, IList ranges = default(IList)) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets ranges are the allowed ranges of uids that may be - /// used. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// Gets or sets 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 (Rule == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rule"); - } - if (Ranges != null) - { - foreach (var element in Ranges) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1SELinuxStrategyOptions.cs b/src/generated/Models/V1beta1SELinuxStrategyOptions.cs deleted file mode 100644 index 22c894c95..000000000 --- a/src/generated/Models/V1beta1SELinuxStrategyOptions.cs +++ /dev/null @@ -1,78 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// SELinux Strategy Options 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. - /// - /// type is the strategy that will dictate the - /// allowable labels that may be set. - /// seLinuxOptions required to run as; - /// required for MustRunAs More info: - /// https://git.k8s.io/community/contributors/design-proposals/security_context.md - public V1beta1SELinuxStrategyOptions(string rule, V1SELinuxOptions seLinuxOptions = default(V1SELinuxOptions)) - { - Rule = rule; - SeLinuxOptions = seLinuxOptions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets type is the strategy that will dictate the allowable - /// labels that may be set. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - /// - /// Gets or sets seLinuxOptions required to run as; required for - /// MustRunAs More info: - /// https://git.k8s.io/community/contributors/design-proposals/security_context.md - /// - [JsonProperty(PropertyName = "seLinuxOptions")] - public V1SELinuxOptions SeLinuxOptions { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Rule == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Rule"); - } - } - } -} diff --git a/src/generated/Models/V1beta1SelfSubjectAccessReview.cs b/src/generated/Models/V1beta1SelfSubjectAccessReview.cs deleted file mode 100644 index 1951220d8..000000000 --- a/src/generated/Models/V1beta1SelfSubjectAccessReview.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 V1beta1SelfSubjectAccessReview - { - /// - /// Initializes a new instance of the V1beta1SelfSubjectAccessReview - /// class. - /// - public V1beta1SelfSubjectAccessReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SelfSubjectAccessReview - /// 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request is allowed or not - public V1beta1SelfSubjectAccessReview(V1beta1SelfSubjectAccessReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1SubjectAccessReviewStatus status = default(V1beta1SubjectAccessReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated. user and groups must be empty - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1SelfSubjectAccessReviewSpec Spec { get; set; } - - /// - /// Gets or sets status is filled in by the server and indicates - /// whether the request is allowed or not - /// - [JsonProperty(PropertyName = "status")] - public V1beta1SubjectAccessReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1SelfSubjectAccessReviewSpec.cs b/src/generated/Models/V1beta1SelfSubjectAccessReviewSpec.cs deleted file mode 100644 index 22ee9d67a..000000000 --- a/src/generated/Models/V1beta1SelfSubjectAccessReviewSpec.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// SelfSubjectAccessReviewSpec is a description of the access request. - /// Exactly one of ResourceAuthorizationAttributes and - /// NonResourceAuthorizationAttributes must be set - /// - public partial class V1beta1SelfSubjectAccessReviewSpec - { - /// - /// Initializes a new instance of the - /// V1beta1SelfSubjectAccessReviewSpec class. - /// - public V1beta1SelfSubjectAccessReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta1SelfSubjectAccessReviewSpec class. - /// - /// NonResourceAttributes describes - /// information for a non-resource access request - /// ResourceAuthorizationAttributes - /// describes information for a resource access request - public V1beta1SelfSubjectAccessReviewSpec(V1beta1NonResourceAttributes nonResourceAttributes = default(V1beta1NonResourceAttributes), V1beta1ResourceAttributes resourceAttributes = default(V1beta1ResourceAttributes)) - { - NonResourceAttributes = nonResourceAttributes; - ResourceAttributes = resourceAttributes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets nonResourceAttributes describes information for a - /// non-resource access request - /// - [JsonProperty(PropertyName = "nonResourceAttributes")] - public V1beta1NonResourceAttributes NonResourceAttributes { get; set; } - - /// - /// Gets or sets resourceAuthorizationAttributes describes information - /// for a resource access request - /// - [JsonProperty(PropertyName = "resourceAttributes")] - public V1beta1ResourceAttributes ResourceAttributes { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1SelfSubjectRulesReview.cs b/src/generated/Models/V1beta1SelfSubjectRulesReview.cs deleted file mode 100644 index 2540c2974..000000000 --- a/src/generated/Models/V1beta1SelfSubjectRulesReview.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 V1beta1SelfSubjectRulesReview - { - /// - /// Initializes a new instance of the V1beta1SelfSubjectRulesReview - /// class. - /// - public V1beta1SelfSubjectRulesReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SelfSubjectRulesReview - /// 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates the set of actions a user can perform. - public V1beta1SelfSubjectRulesReview(V1beta1SelfSubjectRulesReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1SubjectRulesReviewStatus status = default(V1beta1SubjectRulesReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1SelfSubjectRulesReviewSpec Spec { get; set; } - - /// - /// Gets or sets status is filled in by the server and indicates the - /// set of actions a user can perform. - /// - [JsonProperty(PropertyName = "status")] - public V1beta1SubjectRulesReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1SelfSubjectRulesReviewSpec.cs b/src/generated/Models/V1beta1SelfSubjectRulesReviewSpec.cs deleted file mode 100644 index fd8a79d18..000000000 --- a/src/generated/Models/V1beta1SelfSubjectRulesReviewSpec.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class V1beta1SelfSubjectRulesReviewSpec - { - /// - /// Initializes a new instance of the V1beta1SelfSubjectRulesReviewSpec - /// class. - /// - public V1beta1SelfSubjectRulesReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SelfSubjectRulesReviewSpec - /// class. - /// - /// Namespace to evaluate rules for. - /// Required. - public V1beta1SelfSubjectRulesReviewSpec(string namespaceProperty = default(string)) - { - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets namespace to evaluate rules for. Required. - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1ServiceReference.cs b/src/generated/Models/V1beta1ServiceReference.cs deleted file mode 100644 index 9adcf97f8..000000000 --- a/src/generated/Models/V1beta1ServiceReference.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ServiceReference holds a reference to Service.legacy.k8s.io - /// - public partial class V1beta1ServiceReference - { - /// - /// Initializes a new instance of the V1beta1ServiceReference class. - /// - public V1beta1ServiceReference() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1ServiceReference class. - /// - /// Name is the name of the service - /// Namespace is the namespace of the - /// service - public V1beta1ServiceReference(string name = default(string), string namespaceProperty = default(string)) - { - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name is the name of the service - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets namespace is the namespace of the service - /// - [JsonProperty(PropertyName = "namespace")] - public string NamespaceProperty { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1StatefulSet.cs b/src/generated/Models/V1beta1StatefulSet.cs deleted file mode 100644 index 9d3afccd5..000000000 --- a/src/generated/Models/V1beta1StatefulSet.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DEPRECATED - This group version of StatefulSet is deprecated by - /// apps/v1beta2/StatefulSet. See the release notes for more information. - /// 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 V1beta1StatefulSet - { - /// - /// Initializes a new instance of the V1beta1StatefulSet class. - /// - public V1beta1StatefulSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StatefulSet 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/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/api-conventions.md#types-kinds - /// 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 V1beta1StatefulSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1StatefulSetSpec spec = default(V1beta1StatefulSetSpec), V1beta1StatefulSetStatus status = default(V1beta1StatefulSetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the desired identities of pods in this - /// set. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1StatefulSetSpec Spec { get; set; } - - /// - /// Gets or sets 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 V1beta1StatefulSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1StatefulSetList.cs b/src/generated/Models/V1beta1StatefulSetList.cs deleted file mode 100644 index e2d6dc12e..000000000 --- a/src/generated/Models/V1beta1StatefulSetList.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// StatefulSetList is a collection of StatefulSets. - /// - public partial class V1beta1StatefulSetList - { - /// - /// Initializes a new instance of the V1beta1StatefulSetList class. - /// - public V1beta1StatefulSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StatefulSetList 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/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/api-conventions.md#types-kinds - public V1beta1StatefulSetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1StatefulSetSpec.cs b/src/generated/Models/V1beta1StatefulSetSpec.cs deleted file mode 100644 index dc278fc62..000000000 --- a/src/generated/Models/V1beta1StatefulSetSpec.cs +++ /dev/null @@ -1,208 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A StatefulSetSpec is the specification of a StatefulSet. - /// - public partial class V1beta1StatefulSetSpec - { - /// - /// Initializes a new instance of the V1beta1StatefulSetSpec class. - /// - public V1beta1StatefulSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StatefulSetSpec class. - /// - /// 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. - /// 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. - /// selector is a label query over pods that - /// should match the replica count. If empty, defaulted to labels on - /// the pod template. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// 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 V1beta1StatefulSetSpec(string serviceName, V1PodTemplateSpec template, string podManagementPolicy = default(string), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1beta1StatefulSetUpdateStrategy updateStrategy = default(V1beta1StatefulSetUpdateStrategy), IList volumeClaimTemplates = default(IList)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets selector is a label query over pods that should match - /// the replica count. If empty, defaulted to labels on the pod - /// template. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 V1beta1StatefulSetUpdateStrategy UpdateStrategy { get; set; } - - /// - /// Gets or sets 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 (ServiceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServiceName"); - } - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - if (VolumeClaimTemplates != null) - { - foreach (var element in VolumeClaimTemplates) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1StatefulSetStatus.cs b/src/generated/Models/V1beta1StatefulSetStatus.cs deleted file mode 100644 index 59d78a3d9..000000000 --- a/src/generated/Models/V1beta1StatefulSetStatus.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// StatefulSetStatus represents the current state of a StatefulSet. - /// - public partial class V1beta1StatefulSetStatus - { - /// - /// Initializes a new instance of the V1beta1StatefulSetStatus class. - /// - public V1beta1StatefulSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StatefulSetStatus class. - /// - /// replicas is the number of Pods created by - /// the StatefulSet controller. - /// 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. - /// 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 V1beta1StatefulSetStatus(int replicas, int? collisionCount = default(int?), int? currentReplicas = default(int?), string currentRevision = default(string), long? observedGeneration = default(long?), int? readyReplicas = default(int?), string updateRevision = default(string), int? updatedReplicas = default(int?)) - { - CollisionCount = collisionCount; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets readyReplicas is the number of Pods created by the - /// StatefulSet controller that have a Ready Condition. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets replicas is the number of Pods created by the - /// StatefulSet controller. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta1StatefulSetUpdateStrategy.cs b/src/generated/Models/V1beta1StatefulSetUpdateStrategy.cs deleted file mode 100644 index 73dbaa631..000000000 --- a/src/generated/Models/V1beta1StatefulSetUpdateStrategy.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta1StatefulSetUpdateStrategy - { - /// - /// Initializes a new instance of the V1beta1StatefulSetUpdateStrategy - /// class. - /// - public V1beta1StatefulSetUpdateStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StatefulSetUpdateStrategy - /// class. - /// - /// RollingUpdate is used to communicate - /// parameters when Type is - /// RollingUpdateStatefulSetStrategyType. - /// Type indicates the type of the - /// StatefulSetUpdateStrategy. - public V1beta1StatefulSetUpdateStrategy(V1beta1RollingUpdateStatefulSetStrategy rollingUpdate = default(V1beta1RollingUpdateStatefulSetStrategy), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rollingUpdate is used to communicate parameters when - /// Type is RollingUpdateStatefulSetStrategyType. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1beta1RollingUpdateStatefulSetStrategy RollingUpdate { get; set; } - - /// - /// Gets or sets type indicates the type of the - /// StatefulSetUpdateStrategy. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1StorageClass.cs b/src/generated/Models/V1beta1StorageClass.cs deleted file mode 100644 index 7633cee75..000000000 --- a/src/generated/Models/V1beta1StorageClass.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1StorageClass - { - /// - /// Initializes a new instance of the V1beta1StorageClass class. - /// - public V1beta1StorageClass() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StorageClass class. - /// - /// Provisioner indicates the type of the - /// provisioner. - /// AllowVolumeExpansion shows - /// whether the storage class allow volume expand - /// APIVersion defines the versioned schema of - /// this representation of an object. Servers should convert recognized - /// schemas to the latest internal value, and may reject unrecognized - /// values. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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. - public V1beta1StorageClass(string provisioner, bool? allowVolumeExpansion = default(bool?), string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList mountOptions = default(IList), IDictionary parameters = default(IDictionary), string reclaimPolicy = default(string)) - { - AllowVolumeExpansion = allowVolumeExpansion; - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - MountOptions = mountOptions; - Parameters = parameters; - Provisioner = provisioner; - ReclaimPolicy = reclaimPolicy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets allowVolumeExpansion shows whether the storage class - /// allow volume expand - /// - [JsonProperty(PropertyName = "allowVolumeExpansion")] - public bool? AllowVolumeExpansion { get; set; } - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets parameters holds the parameters for the provisioner - /// that should create volumes of this storage class. - /// - [JsonProperty(PropertyName = "parameters")] - public IDictionary Parameters { get; set; } - - /// - /// Gets or sets provisioner indicates the type of the provisioner. - /// - [JsonProperty(PropertyName = "provisioner")] - public string Provisioner { get; set; } - - /// - /// Gets or sets dynamically provisioned PersistentVolumes of this - /// storage class are created with this reclaimPolicy. Defaults to - /// Delete. - /// - [JsonProperty(PropertyName = "reclaimPolicy")] - public string ReclaimPolicy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Provisioner == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Provisioner"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1StorageClassList.cs b/src/generated/Models/V1beta1StorageClassList.cs deleted file mode 100644 index 3611246b8..000000000 --- a/src/generated/Models/V1beta1StorageClassList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// StorageClassList is a collection of storage classes. - /// - public partial class V1beta1StorageClassList - { - /// - /// Initializes a new instance of the V1beta1StorageClassList class. - /// - public V1beta1StorageClassList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1StorageClassList 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/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/api-conventions.md#types-kinds - /// Standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta1StorageClassList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of StorageClasses - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1Subject.cs b/src/generated/Models/V1beta1Subject.cs deleted file mode 100644 index f7075a6fa..000000000 --- a/src/generated/Models/V1beta1Subject.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 V1beta1Subject - { - /// - /// Initializes a new instance of the V1beta1Subject class. - /// - public V1beta1Subject() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1Subject 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 V1beta1Subject(string kind, string name, string apiGroup = default(string), string namespaceProperty = default(string)) - { - ApiGroup = apiGroup; - Kind = kind; - Name = name; - NamespaceProperty = namespaceProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets name of the object being referenced. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets 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() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V1beta1SubjectAccessReview.cs b/src/generated/Models/V1beta1SubjectAccessReview.cs deleted file mode 100644 index e85bcf867..000000000 --- a/src/generated/Models/V1beta1SubjectAccessReview.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// SubjectAccessReview checks whether or not a user or group can perform - /// an action. - /// - public partial class V1beta1SubjectAccessReview - { - /// - /// Initializes a new instance of the V1beta1SubjectAccessReview class. - /// - public V1beta1SubjectAccessReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SubjectAccessReview 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request is allowed or not - public V1beta1SubjectAccessReview(V1beta1SubjectAccessReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1SubjectAccessReviewStatus status = default(V1beta1SubjectAccessReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1SubjectAccessReviewSpec Spec { get; set; } - - /// - /// Gets or sets status is filled in by the server and indicates - /// whether the request is allowed or not - /// - [JsonProperty(PropertyName = "status")] - public V1beta1SubjectAccessReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1SubjectAccessReviewSpec.cs b/src/generated/Models/V1beta1SubjectAccessReviewSpec.cs deleted file mode 100644 index dc7416608..000000000 --- a/src/generated/Models/V1beta1SubjectAccessReviewSpec.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// SubjectAccessReviewSpec is a description of the access request. - /// Exactly one of ResourceAuthorizationAttributes and - /// NonResourceAuthorizationAttributes must be set - /// - public partial class V1beta1SubjectAccessReviewSpec - { - /// - /// Initializes a new instance of the V1beta1SubjectAccessReviewSpec - /// class. - /// - public V1beta1SubjectAccessReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SubjectAccessReviewSpec - /// 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 "Group", then is it interpreted as "What if - /// User were not a member of any groups - public V1beta1SubjectAccessReviewSpec(IDictionary> extra = default(IDictionary>), IList group = default(IList), V1beta1NonResourceAttributes nonResourceAttributes = default(V1beta1NonResourceAttributes), V1beta1ResourceAttributes resourceAttributes = default(V1beta1ResourceAttributes), string uid = default(string), string user = default(string)) - { - Extra = extra; - Group = group; - NonResourceAttributes = nonResourceAttributes; - ResourceAttributes = resourceAttributes; - Uid = uid; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets groups is the groups you're testing for. - /// - [JsonProperty(PropertyName = "group")] - public IList Group { get; set; } - - /// - /// Gets or sets nonResourceAttributes describes information for a - /// non-resource access request - /// - [JsonProperty(PropertyName = "nonResourceAttributes")] - public V1beta1NonResourceAttributes NonResourceAttributes { get; set; } - - /// - /// Gets or sets resourceAuthorizationAttributes describes information - /// for a resource access request - /// - [JsonProperty(PropertyName = "resourceAttributes")] - public V1beta1ResourceAttributes ResourceAttributes { get; set; } - - /// - /// Gets or sets UID information about the requesting user. - /// - [JsonProperty(PropertyName = "uid")] - public string Uid { get; set; } - - /// - /// Gets or sets user is the user you're testing for. If you specify - /// "User" but not "Group", then is it interpreted as "What if User - /// were not a member of any groups - /// - [JsonProperty(PropertyName = "user")] - public string User { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1SubjectAccessReviewStatus.cs b/src/generated/Models/V1beta1SubjectAccessReviewStatus.cs deleted file mode 100644 index ada96b817..000000000 --- a/src/generated/Models/V1beta1SubjectAccessReviewStatus.cs +++ /dev/null @@ -1,89 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// SubjectAccessReviewStatus - /// - public partial class V1beta1SubjectAccessReviewStatus - { - /// - /// Initializes a new instance of the V1beta1SubjectAccessReviewStatus - /// class. - /// - public V1beta1SubjectAccessReviewStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SubjectAccessReviewStatus - /// class. - /// - /// Allowed is required. True if the action - /// would be allowed, false otherwise. - /// 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 V1beta1SubjectAccessReviewStatus(bool allowed, string evaluationError = default(string), string reason = default(string)) - { - Allowed = allowed; - EvaluationError = evaluationError; - Reason = reason; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets allowed is required. True if the action would be - /// allowed, false otherwise. - /// - [JsonProperty(PropertyName = "allowed")] - public bool Allowed { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta1SubjectRulesReviewStatus.cs b/src/generated/Models/V1beta1SubjectRulesReviewStatus.cs deleted file mode 100644 index ab3af4a5c..000000000 --- a/src/generated/Models/V1beta1SubjectRulesReviewStatus.cs +++ /dev/null @@ -1,141 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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 V1beta1SubjectRulesReviewStatus - { - /// - /// Initializes a new instance of the V1beta1SubjectRulesReviewStatus - /// class. - /// - public V1beta1SubjectRulesReviewStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1SubjectRulesReviewStatus - /// 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 V1beta1SubjectRulesReviewStatus(bool incomplete, IList nonResourceRules, IList resourceRules, string evaluationError = default(string)) - { - EvaluationError = evaluationError; - Incomplete = incomplete; - NonResourceRules = nonResourceRules; - ResourceRules = resourceRules; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "NonResourceRules"); - } - if (ResourceRules == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ResourceRules"); - } - if (NonResourceRules != null) - { - foreach (var element in NonResourceRules) - { - if (element != null) - { - element.Validate(); - } - } - } - if (ResourceRules != null) - { - foreach (var element1 in ResourceRules) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta1SupplementalGroupsStrategyOptions.cs b/src/generated/Models/V1beta1SupplementalGroupsStrategyOptions.cs deleted file mode 100644 index 8b1e3a660..000000000 --- a/src/generated/Models/V1beta1SupplementalGroupsStrategyOptions.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// Rule is the strategy that will dictate what - /// supplemental groups is used in the SecurityContext. - public V1beta1SupplementalGroupsStrategyOptions(IList ranges = default(IList), string rule = default(string)) - { - Ranges = ranges; - Rule = rule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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. - /// - [JsonProperty(PropertyName = "ranges")] - public IList Ranges { get; set; } - - /// - /// Gets or sets rule is the strategy that will dictate what - /// supplemental groups is used in the SecurityContext. - /// - [JsonProperty(PropertyName = "rule")] - public string Rule { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1TokenReview.cs b/src/generated/Models/V1beta1TokenReview.cs deleted file mode 100644 index d2255168e..000000000 --- a/src/generated/Models/V1beta1TokenReview.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 V1beta1TokenReview - { - /// - /// Initializes a new instance of the V1beta1TokenReview class. - /// - public V1beta1TokenReview() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1TokenReview 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/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/api-conventions.md#types-kinds - /// Status is filled in by the server and - /// indicates whether the request can be authenticated. - public V1beta1TokenReview(V1beta1TokenReviewSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1TokenReviewStatus status = default(V1beta1TokenReviewStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec holds information about the request being - /// evaluated - /// - [JsonProperty(PropertyName = "spec")] - public V1beta1TokenReviewSpec Spec { get; set; } - - /// - /// Gets or sets status is filled in by the server and indicates - /// whether the request can be authenticated. - /// - [JsonProperty(PropertyName = "status")] - public V1beta1TokenReviewStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Spec == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Spec"); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta1TokenReviewSpec.cs b/src/generated/Models/V1beta1TokenReviewSpec.cs deleted file mode 100644 index babf69656..000000000 --- a/src/generated/Models/V1beta1TokenReviewSpec.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// TokenReviewSpec is a description of the token authentication request. - /// - public partial class V1beta1TokenReviewSpec - { - /// - /// Initializes a new instance of the V1beta1TokenReviewSpec class. - /// - public V1beta1TokenReviewSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1TokenReviewSpec class. - /// - /// Token is the opaque bearer token. - public V1beta1TokenReviewSpec(string token = default(string)) - { - Token = token; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets token is the opaque bearer token. - /// - [JsonProperty(PropertyName = "token")] - public string Token { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1TokenReviewStatus.cs b/src/generated/Models/V1beta1TokenReviewStatus.cs deleted file mode 100644 index 27d33fce3..000000000 --- a/src/generated/Models/V1beta1TokenReviewStatus.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// TokenReviewStatus is the result of the token authentication request. - /// - public partial class V1beta1TokenReviewStatus - { - /// - /// Initializes a new instance of the V1beta1TokenReviewStatus class. - /// - public V1beta1TokenReviewStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1TokenReviewStatus class. - /// - /// 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 V1beta1TokenReviewStatus(bool? authenticated = default(bool?), string error = default(string), V1beta1UserInfo user = default(V1beta1UserInfo)) - { - Authenticated = authenticated; - Error = error; - User = user; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets authenticated indicates that the token was associated - /// with a known user. - /// - [JsonProperty(PropertyName = "authenticated")] - public bool? Authenticated { get; set; } - - /// - /// Gets or sets error indicates that the token couldn't be checked - /// - [JsonProperty(PropertyName = "error")] - public string Error { get; set; } - - /// - /// Gets or sets user is the UserInfo associated with the provided - /// token. - /// - [JsonProperty(PropertyName = "user")] - public V1beta1UserInfo User { get; set; } - - } -} diff --git a/src/generated/Models/V1beta1UserInfo.cs b/src/generated/Models/V1beta1UserInfo.cs deleted file mode 100644 index e6aceb09d..000000000 --- a/src/generated/Models/V1beta1UserInfo.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// UserInfo holds the information about the user needed to implement the - /// user.Info interface. - /// - public partial class V1beta1UserInfo - { - /// - /// Initializes a new instance of the V1beta1UserInfo class. - /// - public V1beta1UserInfo() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta1UserInfo 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 V1beta1UserInfo(IDictionary> extra = default(IDictionary>), IList groups = default(IList), string uid = default(string), string username = default(string)) - { - Extra = extra; - Groups = groups; - Uid = uid; - Username = username; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets any additional information provided by the - /// authenticator. - /// - [JsonProperty(PropertyName = "extra")] - public IDictionary> Extra { get; set; } - - /// - /// Gets or sets the names of groups this user is a part of. - /// - [JsonProperty(PropertyName = "groups")] - public IList Groups { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the name that uniquely identifies this user among all - /// active users. - /// - [JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - } -} diff --git a/src/generated/Models/V1beta2ControllerRevision.cs b/src/generated/Models/V1beta2ControllerRevision.cs deleted file mode 100644 index 2efe7c5b9..000000000 --- a/src/generated/Models/V1beta2ControllerRevision.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta2ControllerRevision - { - /// - /// Initializes a new instance of the V1beta2ControllerRevision class. - /// - public V1beta2ControllerRevision() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ControllerRevision 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta2ControllerRevision(long revision, string apiVersion = default(string), RuntimeRawExtension data = default(RuntimeRawExtension), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta)) - { - ApiVersion = apiVersion; - Data = data; - Kind = kind; - Metadata = metadata; - Revision = revision; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets data is the serialized representation of the state. - /// - [JsonProperty(PropertyName = "data")] - public RuntimeRawExtension Data { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets 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() - { - if (Data != null) - { - Data.Validate(); - } - if (Metadata != null) - { - Metadata.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2ControllerRevisionList.cs b/src/generated/Models/V1beta2ControllerRevisionList.cs deleted file mode 100644 index c3e8f0140..000000000 --- a/src/generated/Models/V1beta2ControllerRevisionList.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ControllerRevisionList is a resource containing a list of - /// ControllerRevision objects. - /// - public partial class V1beta2ControllerRevisionList - { - /// - /// Initializes a new instance of the V1beta2ControllerRevisionList - /// class. - /// - public V1beta2ControllerRevisionList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ControllerRevisionList - /// 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/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/api-conventions.md#types-kinds - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta2ControllerRevisionList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of ControllerRevisions - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets more info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2DaemonSet.cs b/src/generated/Models/V1beta2DaemonSet.cs deleted file mode 100644 index dadb5534a..000000000 --- a/src/generated/Models/V1beta2DaemonSet.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DaemonSet represents the configuration of a daemon set. - /// - public partial class V1beta2DaemonSet - { - /// - /// Initializes a new instance of the V1beta2DaemonSet class. - /// - public V1beta2DaemonSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DaemonSet 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// The desired behavior of this daemon set. More - /// info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1beta2DaemonSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta2DaemonSetSpec spec = default(V1beta2DaemonSetSpec), V1beta2DaemonSetStatus status = default(V1beta2DaemonSetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets the desired behavior of this daemon set. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta2DaemonSetSpec Spec { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta2DaemonSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2DaemonSetList.cs b/src/generated/Models/V1beta2DaemonSetList.cs deleted file mode 100644 index bed507e46..000000000 --- a/src/generated/Models/V1beta2DaemonSetList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DaemonSetList is a collection of daemon sets. - /// - public partial class V1beta2DaemonSetList - { - /// - /// Initializes a new instance of the V1beta2DaemonSetList class. - /// - public V1beta2DaemonSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DaemonSetList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V1beta2DaemonSetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets a list of daemon sets. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2DaemonSetSpec.cs b/src/generated/Models/V1beta2DaemonSetSpec.cs deleted file mode 100644 index dfa81461a..000000000 --- a/src/generated/Models/V1beta2DaemonSetSpec.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DaemonSetSpec is the specification of a daemon set. - /// - public partial class V1beta2DaemonSetSpec - { - /// - /// Initializes a new instance of the V1beta2DaemonSetSpec class. - /// - public V1beta2DaemonSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DaemonSetSpec class. - /// - /// 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. - /// A label query over pods that are managed by - /// the daemon set. Must match in order to be controlled. If empty, - /// defaulted to labels on Pod template. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// An update strategy to replace existing - /// DaemonSet pods with new pods. - public V1beta2DaemonSetSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1beta2DaemonSetUpdateStrategy updateStrategy = default(V1beta2DaemonSetUpdateStrategy)) - { - MinReadySeconds = minReadySeconds; - RevisionHistoryLimit = revisionHistoryLimit; - Selector = selector; - Template = template; - UpdateStrategy = updateStrategy; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets a label query over pods that are managed by the daemon - /// set. Must match in order to be controlled. 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 V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets an update strategy to replace existing DaemonSet pods - /// with new pods. - /// - [JsonProperty(PropertyName = "updateStrategy")] - public V1beta2DaemonSetUpdateStrategy UpdateStrategy { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2DaemonSetStatus.cs b/src/generated/Models/V1beta2DaemonSetStatus.cs deleted file mode 100644 index 5c196554f..000000000 --- a/src/generated/Models/V1beta2DaemonSetStatus.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DaemonSetStatus represents the current status of a daemon set. - /// - public partial class V1beta2DaemonSetStatus - { - /// - /// Initializes a new instance of the V1beta2DaemonSetStatus class. - /// - public V1beta2DaemonSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DaemonSetStatus 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. - /// 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 V1beta2DaemonSetStatus(int currentNumberScheduled, int desiredNumberScheduled, int numberMisscheduled, int numberReady, int? collisionCount = default(int?), int? numberAvailable = default(int?), int? numberUnavailable = default(int?), long? observedGeneration = default(long?), int? updatedNumberScheduled = default(int?)) - { - CollisionCount = collisionCount; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the most recent generation observed by the daemon set - /// controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta2DaemonSetUpdateStrategy.cs b/src/generated/Models/V1beta2DaemonSetUpdateStrategy.cs deleted file mode 100644 index 792675cba..000000000 --- a/src/generated/Models/V1beta2DaemonSetUpdateStrategy.cs +++ /dev/null @@ -1,62 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DaemonSetUpdateStrategy is a struct used to control the update strategy - /// for a DaemonSet. - /// - public partial class V1beta2DaemonSetUpdateStrategy - { - /// - /// Initializes a new instance of the V1beta2DaemonSetUpdateStrategy - /// class. - /// - public V1beta2DaemonSetUpdateStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DaemonSetUpdateStrategy - /// class. - /// - /// Rolling update config params. Present - /// only if type = "RollingUpdate". - /// Type of daemon set update. Can be - /// "RollingUpdate" or "OnDelete". Default is RollingUpdate. - public V1beta2DaemonSetUpdateStrategy(V1beta2RollingUpdateDaemonSet rollingUpdate = default(V1beta2RollingUpdateDaemonSet), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rolling update config params. Present only if type = - /// "RollingUpdate". - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1beta2RollingUpdateDaemonSet RollingUpdate { get; set; } - - /// - /// Gets or sets type of daemon set update. Can be "RollingUpdate" or - /// "OnDelete". Default is RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V1beta2Deployment.cs b/src/generated/Models/V1beta2Deployment.cs deleted file mode 100644 index b532d89bd..000000000 --- a/src/generated/Models/V1beta2Deployment.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Deployment enables declarative updates for Pods and ReplicaSets. - /// - public partial class V1beta2Deployment - { - /// - /// Initializes a new instance of the V1beta2Deployment class. - /// - public V1beta2Deployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2Deployment 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/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/api-conventions.md#types-kinds - /// Standard object metadata. - /// Specification of the desired behavior of the - /// Deployment. - /// Most recently observed status of the - /// Deployment. - public V1beta2Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta2DeploymentSpec spec = default(V1beta2DeploymentSpec), V1beta2DeploymentStatus status = default(V1beta2DeploymentStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the - /// Deployment. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta2DeploymentSpec Spec { get; set; } - - /// - /// Gets or sets most recently observed status of the Deployment. - /// - [JsonProperty(PropertyName = "status")] - public V1beta2DeploymentStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2DeploymentCondition.cs b/src/generated/Models/V1beta2DeploymentCondition.cs deleted file mode 100644 index 5834408ce..000000000 --- a/src/generated/Models/V1beta2DeploymentCondition.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentCondition describes the state of a deployment at a certain - /// point. - /// - public partial class V1beta2DeploymentCondition - { - /// - /// Initializes a new instance of the V1beta2DeploymentCondition class. - /// - public V1beta2DeploymentCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DeploymentCondition 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 V1beta2DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - 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(); - - /// - /// Gets or sets last time the condition transitioned from one status - /// to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets the last time this condition was updated. - /// - [JsonProperty(PropertyName = "lastUpdateTime")] - public System.DateTime? LastUpdateTime { get; set; } - - /// - /// Gets or sets a human readable message indicating details about the - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of deployment condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1beta2DeploymentList.cs b/src/generated/Models/V1beta2DeploymentList.cs deleted file mode 100644 index bb722cbec..000000000 --- a/src/generated/Models/V1beta2DeploymentList.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DeploymentList is a list of Deployments. - /// - public partial class V1beta2DeploymentList - { - /// - /// Initializes a new instance of the V1beta2DeploymentList class. - /// - public V1beta2DeploymentList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DeploymentList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. - public V1beta2DeploymentList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of Deployments. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2DeploymentSpec.cs b/src/generated/Models/V1beta2DeploymentSpec.cs deleted file mode 100644 index 13a74e036..000000000 --- a/src/generated/Models/V1beta2DeploymentSpec.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentSpec is the specification of the desired behavior of the - /// Deployment. - /// - public partial class V1beta2DeploymentSpec - { - /// - /// Initializes a new instance of the V1beta2DeploymentSpec class. - /// - public V1beta2DeploymentSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DeploymentSpec class. - /// - /// 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. - /// Label selector for pods. Existing - /// ReplicaSets whose pods are selected by this will be the ones - /// affected by this deployment. - /// The deployment strategy to use to replace - /// existing pods with new ones. - public V1beta2DeploymentSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1beta2DeploymentStrategy strategy = default(V1beta2DeploymentStrategy)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets indicates that the deployment is paused. - /// - [JsonProperty(PropertyName = "paused")] - public bool? Paused { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets label selector for pods. Existing ReplicaSets whose - /// pods are selected by this will be the ones affected by this - /// deployment. - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets the deployment strategy to use to replace existing - /// pods with new ones. - /// - [JsonProperty(PropertyName = "strategy")] - public V1beta2DeploymentStrategy Strategy { get; set; } - - /// - /// Gets or sets 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 (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2DeploymentStatus.cs b/src/generated/Models/V1beta2DeploymentStatus.cs deleted file mode 100644 index d8833a3d2..000000000 --- a/src/generated/Models/V1beta2DeploymentStatus.cs +++ /dev/null @@ -1,133 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// DeploymentStatus is the most recently observed status of the - /// Deployment. - /// - public partial class V1beta2DeploymentStatus - { - /// - /// Initializes a new instance of the V1beta2DeploymentStatus class. - /// - public V1beta2DeploymentStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DeploymentStatus 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 V1beta2DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList conditions = default(IList), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?)) - { - 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(); - - /// - /// Gets or sets total number of available pods (ready for at least - /// minReadySeconds) targeted by this deployment. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets represents the latest available observations of a - /// deployment's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets the generation observed by the deployment controller. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets total number of ready pods targeted by this - /// deployment. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets total number of non-terminated pods targeted by this - /// deployment (their labels match the selector). - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets total number of non-terminated pods targeted by this - /// deployment that have the desired template spec. - /// - [JsonProperty(PropertyName = "updatedReplicas")] - public int? UpdatedReplicas { get; set; } - - } -} diff --git a/src/generated/Models/V1beta2DeploymentStrategy.cs b/src/generated/Models/V1beta2DeploymentStrategy.cs deleted file mode 100644 index 47733373e..000000000 --- a/src/generated/Models/V1beta2DeploymentStrategy.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// DeploymentStrategy describes how to replace existing pods with new - /// ones. - /// - public partial class V1beta2DeploymentStrategy - { - /// - /// Initializes a new instance of the V1beta2DeploymentStrategy class. - /// - public V1beta2DeploymentStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2DeploymentStrategy class. - /// - /// Rolling update config params. Present - /// only if DeploymentStrategyType = RollingUpdate. - /// Type of deployment. Can be "Recreate" or - /// "RollingUpdate". Default is RollingUpdate. - public V1beta2DeploymentStrategy(V1beta2RollingUpdateDeployment rollingUpdate = default(V1beta2RollingUpdateDeployment), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rolling update config params. Present only if - /// DeploymentStrategyType = RollingUpdate. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1beta2RollingUpdateDeployment RollingUpdate { get; set; } - - /// - /// Gets or sets type of deployment. Can be "Recreate" or - /// "RollingUpdate". Default is RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V1beta2ReplicaSet.cs b/src/generated/Models/V1beta2ReplicaSet.cs deleted file mode 100644 index 44f092536..000000000 --- a/src/generated/Models/V1beta2ReplicaSet.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ReplicaSet represents the configuration of a ReplicaSet. - /// - public partial class V1beta2ReplicaSet - { - /// - /// Initializes a new instance of the V1beta2ReplicaSet class. - /// - public V1beta2ReplicaSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ReplicaSet 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/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/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/api-conventions.md#metadata - /// Spec defines the specification of the desired - /// behavior of the ReplicaSet. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - public V1beta2ReplicaSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta2ReplicaSetSpec spec = default(V1beta2ReplicaSetSpec), V1beta2ReplicaSetStatus status = default(V1beta2ReplicaSetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the specification of the desired behavior - /// of the ReplicaSet. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V1beta2ReplicaSetSpec Spec { get; set; } - - /// - /// Gets or sets 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/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V1beta2ReplicaSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2ReplicaSetCondition.cs b/src/generated/Models/V1beta2ReplicaSetCondition.cs deleted file mode 100644 index a892dd4a7..000000000 --- a/src/generated/Models/V1beta2ReplicaSetCondition.cs +++ /dev/null @@ -1,104 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// ReplicaSetCondition describes the state of a replica set at a certain - /// point. - /// - public partial class V1beta2ReplicaSetCondition - { - /// - /// Initializes a new instance of the V1beta2ReplicaSetCondition class. - /// - public V1beta2ReplicaSetCondition() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ReplicaSetCondition 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 V1beta2ReplicaSetCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the last time the condition transitioned from one - /// status to another. - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets a human readable message indicating details about the - /// transition. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the reason for the condition's last transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status of the condition, one of True, False, Unknown. - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type of replica set condition. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V1beta2ReplicaSetList.cs b/src/generated/Models/V1beta2ReplicaSetList.cs deleted file mode 100644 index 292926676..000000000 --- a/src/generated/Models/V1beta2ReplicaSetList.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ReplicaSetList is a collection of ReplicaSets. - /// - public partial class V1beta2ReplicaSetList - { - /// - /// Initializes a new instance of the V1beta2ReplicaSetList class. - /// - public V1beta2ReplicaSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ReplicaSetList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - public V1beta2ReplicaSetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets list of ReplicaSets. More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2ReplicaSetSpec.cs b/src/generated/Models/V1beta2ReplicaSetSpec.cs deleted file mode 100644 index af9880e26..000000000 --- a/src/generated/Models/V1beta2ReplicaSetSpec.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ReplicaSetSpec is the specification of a ReplicaSet. - /// - public partial class V1beta2ReplicaSetSpec - { - /// - /// Initializes a new instance of the V1beta2ReplicaSetSpec class. - /// - public V1beta2ReplicaSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ReplicaSetSpec 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 replica count. If the 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 replica - /// set. 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. - /// More info: - /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - public V1beta2ReplicaSetSpec(int? minReadySeconds = default(int?), int? replicas = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1PodTemplateSpec template = default(V1PodTemplateSpec)) - { - MinReadySeconds = minReadySeconds; - Replicas = replicas; - Selector = selector; - Template = template; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets selector is a label query over pods that should match - /// the replica count. If the 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 replica set. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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 (Template != null) - { - Template.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2ReplicaSetStatus.cs b/src/generated/Models/V1beta2ReplicaSetStatus.cs deleted file mode 100644 index 64f4b1676..000000000 --- a/src/generated/Models/V1beta2ReplicaSetStatus.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ReplicaSetStatus represents the current status of a ReplicaSet. - /// - public partial class V1beta2ReplicaSetStatus - { - /// - /// Initializes a new instance of the V1beta2ReplicaSetStatus class. - /// - public V1beta2ReplicaSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ReplicaSetStatus 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 V1beta2ReplicaSetStatus(int replicas, int? availableReplicas = default(int?), IList conditions = default(IList), int? fullyLabeledReplicas = default(int?), long? observedGeneration = default(long?), int? readyReplicas = default(int?)) - { - 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(); - - /// - /// Gets or sets the number of available replicas (ready for at least - /// minReadySeconds) for this replica set. - /// - [JsonProperty(PropertyName = "availableReplicas")] - public int? AvailableReplicas { get; set; } - - /// - /// Gets or sets represents the latest available observations of a - /// replica set's current state. - /// - [JsonProperty(PropertyName = "conditions")] - public IList Conditions { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets observedGeneration reflects the generation of the most - /// recently observed ReplicaSet. - /// - [JsonProperty(PropertyName = "observedGeneration")] - public long? ObservedGeneration { get; set; } - - /// - /// Gets or sets the number of ready replicas for this replica set. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets 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 element in Conditions) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2RollingUpdateDaemonSet.cs b/src/generated/Models/V1beta2RollingUpdateDaemonSet.cs deleted file mode 100644 index 42a28e674..000000000 --- a/src/generated/Models/V1beta2RollingUpdateDaemonSet.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Spec to control the desired behavior of daemon set rolling update. - /// - public partial class V1beta2RollingUpdateDaemonSet - { - /// - /// Initializes a new instance of the V1beta2RollingUpdateDaemonSet - /// class. - /// - public V1beta2RollingUpdateDaemonSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2RollingUpdateDaemonSet - /// class. - /// - /// 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. 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 V1beta2RollingUpdateDaemonSet(IntstrIntOrString maxUnavailable = default(IntstrIntOrString)) - { - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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. 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; } - - } -} diff --git a/src/generated/Models/V1beta2RollingUpdateDeployment.cs b/src/generated/Models/V1beta2RollingUpdateDeployment.cs deleted file mode 100644 index ebc844aa4..000000000 --- a/src/generated/Models/V1beta2RollingUpdateDeployment.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Spec to control the desired behavior of rolling update. - /// - public partial class V1beta2RollingUpdateDeployment - { - /// - /// Initializes a new instance of the V1beta2RollingUpdateDeployment - /// class. - /// - public V1beta2RollingUpdateDeployment() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2RollingUpdateDeployment - /// 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 RC 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 RC can be scaled up further, - /// ensuring that total number of pods running at any time during the - /// update is atmost 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 RC can be scaled down to 70% of desired pods immediately - /// when the rolling update starts. Once new pods are ready, old RC can - /// be scaled down further, followed by scaling up the new RC, ensuring - /// that the total number of pods available at all times during the - /// update is at least 70% of desired pods. - public V1beta2RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString)) - { - MaxSurge = maxSurge; - MaxUnavailable = maxUnavailable; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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 RC 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 RC - /// can be scaled up further, ensuring that total number of pods - /// running at any time during the update is atmost 130% of desired - /// pods. - /// - [JsonProperty(PropertyName = "maxSurge")] - public IntstrIntOrString MaxSurge { get; set; } - - /// - /// Gets or sets 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 RC - /// can be scaled down to 70% of desired pods immediately when the - /// rolling update starts. Once new pods are ready, old RC can be - /// scaled down further, followed by scaling up the new RC, 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; } - - } -} diff --git a/src/generated/Models/V1beta2RollingUpdateStatefulSetStrategy.cs b/src/generated/Models/V1beta2RollingUpdateStatefulSetStrategy.cs deleted file mode 100644 index 756611728..000000000 --- a/src/generated/Models/V1beta2RollingUpdateStatefulSetStrategy.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// RollingUpdateStatefulSetStrategy is used to communicate parameter for - /// RollingUpdateStatefulSetStrategyType. - /// - public partial class V1beta2RollingUpdateStatefulSetStrategy - { - /// - /// Initializes a new instance of the - /// V1beta2RollingUpdateStatefulSetStrategy class. - /// - public V1beta2RollingUpdateStatefulSetStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// V1beta2RollingUpdateStatefulSetStrategy class. - /// - /// Partition indicates the ordinal at which - /// the StatefulSet should be partitioned. Default value is 0. - public V1beta2RollingUpdateStatefulSetStrategy(int? partition = default(int?)) - { - Partition = partition; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets partition indicates the ordinal at which the - /// StatefulSet should be partitioned. Default value is 0. - /// - [JsonProperty(PropertyName = "partition")] - public int? Partition { get; set; } - - } -} diff --git a/src/generated/Models/V1beta2Scale.cs b/src/generated/Models/V1beta2Scale.cs deleted file mode 100644 index 10ba7b238..000000000 --- a/src/generated/Models/V1beta2Scale.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Scale represents a scaling request for a resource. - /// - public partial class V1beta2Scale - { - /// - /// Initializes a new instance of the V1beta2Scale class. - /// - public V1beta2Scale() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2Scale 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/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/api-conventions.md#types-kinds - /// Standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - public V1beta2Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta2ScaleSpec spec = default(V1beta2ScaleSpec), V1beta2ScaleStatus status = default(V1beta2ScaleStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object metadata; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets defines the behavior of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta2ScaleSpec Spec { get; set; } - - /// - /// Gets or sets current status of the scale. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// Read-only. - /// - [JsonProperty(PropertyName = "status")] - public V1beta2ScaleStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2ScaleSpec.cs b/src/generated/Models/V1beta2ScaleSpec.cs deleted file mode 100644 index 24ad2ab15..000000000 --- a/src/generated/Models/V1beta2ScaleSpec.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// ScaleSpec describes the attributes of a scale subresource - /// - public partial class V1beta2ScaleSpec - { - /// - /// Initializes a new instance of the V1beta2ScaleSpec class. - /// - public V1beta2ScaleSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ScaleSpec class. - /// - /// desired number of instances for the scaled - /// object. - public V1beta2ScaleSpec(int? replicas = default(int?)) - { - Replicas = replicas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets desired number of instances for the scaled object. - /// - [JsonProperty(PropertyName = "replicas")] - public int? Replicas { get; set; } - - } -} diff --git a/src/generated/Models/V1beta2ScaleStatus.cs b/src/generated/Models/V1beta2ScaleStatus.cs deleted file mode 100644 index 2da547c90..000000000 --- a/src/generated/Models/V1beta2ScaleStatus.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// ScaleStatus represents the current status of a scale subresource. - /// - public partial class V1beta2ScaleStatus - { - /// - /// Initializes a new instance of the V1beta2ScaleStatus class. - /// - public V1beta2ScaleStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2ScaleStatus class. - /// - /// actual number of observed instances of the - /// scaled object. - /// label query over pods that should match the - /// replicas count. More info: - /// http://kubernetes.io/docs/user-guide/labels#label-selectors - /// label selector for pods that should - /// match the replicas count. This is a serializated version of both - /// map-based and more expressive set-based selectors. This is done to - /// avoid introspection in the clients. The string will be in the same - /// format as the query-param syntax. If the target type only supports - /// map-based selectors, both this field and map-based selector field - /// are populated. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - public V1beta2ScaleStatus(int replicas, IDictionary selector = default(IDictionary), string targetSelector = default(string)) - { - Replicas = replicas; - Selector = selector; - TargetSelector = targetSelector; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets actual number of observed instances of the scaled - /// object. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Gets or sets label query over pods that should match the replicas - /// count. More info: - /// http://kubernetes.io/docs/user-guide/labels#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public IDictionary Selector { get; set; } - - /// - /// Gets or sets label selector for pods that should match the replicas - /// count. This is a serializated version of both map-based and more - /// expressive set-based selectors. This is done to avoid introspection - /// in the clients. The string will be in the same format as the - /// query-param syntax. If the target type only supports map-based - /// selectors, both this field and map-based selector field are - /// populated. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "targetSelector")] - public string TargetSelector { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - } - } -} diff --git a/src/generated/Models/V1beta2StatefulSet.cs b/src/generated/Models/V1beta2StatefulSet.cs deleted file mode 100644 index 243b3e81e..000000000 --- a/src/generated/Models/V1beta2StatefulSet.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta2StatefulSet - { - /// - /// Initializes a new instance of the V1beta2StatefulSet class. - /// - public V1beta2StatefulSet() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2StatefulSet 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/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/api-conventions.md#types-kinds - /// 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 V1beta2StatefulSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta2StatefulSetSpec spec = default(V1beta2StatefulSetSpec), V1beta2StatefulSetStatus status = default(V1beta2StatefulSetStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec defines the desired identities of pods in this - /// set. - /// - [JsonProperty(PropertyName = "spec")] - public V1beta2StatefulSetSpec Spec { get; set; } - - /// - /// Gets or sets 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 V1beta2StatefulSetStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V1beta2StatefulSetList.cs b/src/generated/Models/V1beta2StatefulSetList.cs deleted file mode 100644 index 7f905127b..000000000 --- a/src/generated/Models/V1beta2StatefulSetList.cs +++ /dev/null @@ -1,109 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// StatefulSetList is a collection of StatefulSets. - /// - public partial class V1beta2StatefulSetList - { - /// - /// Initializes a new instance of the V1beta2StatefulSetList class. - /// - public V1beta2StatefulSetList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2StatefulSetList 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/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/api-conventions.md#types-kinds - public V1beta2StatefulSetList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2StatefulSetSpec.cs b/src/generated/Models/V1beta2StatefulSetSpec.cs deleted file mode 100644 index 51be59574..000000000 --- a/src/generated/Models/V1beta2StatefulSetSpec.cs +++ /dev/null @@ -1,208 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A StatefulSetSpec is the specification of a StatefulSet. - /// - public partial class V1beta2StatefulSetSpec - { - /// - /// Initializes a new instance of the V1beta2StatefulSetSpec class. - /// - public V1beta2StatefulSetSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2StatefulSetSpec class. - /// - /// 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. - /// 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. - /// selector is a label query over pods that - /// should match the replica count. If empty, defaulted to labels on - /// the pod template. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// 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 V1beta2StatefulSetSpec(string serviceName, V1PodTemplateSpec template, string podManagementPolicy = default(string), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1beta2StatefulSetUpdateStrategy updateStrategy = default(V1beta2StatefulSetUpdateStrategy), IList volumeClaimTemplates = default(IList)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets selector is a label query over pods that should match - /// the replica count. If empty, defaulted to labels on the pod - /// template. More info: - /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - /// - [JsonProperty(PropertyName = "selector")] - public V1LabelSelector Selector { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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 V1beta2StatefulSetUpdateStrategy UpdateStrategy { get; set; } - - /// - /// Gets or sets 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 (ServiceName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ServiceName"); - } - if (Template == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Template"); - } - if (Template != null) - { - Template.Validate(); - } - if (VolumeClaimTemplates != null) - { - foreach (var element in VolumeClaimTemplates) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V1beta2StatefulSetStatus.cs b/src/generated/Models/V1beta2StatefulSetStatus.cs deleted file mode 100644 index 284715a22..000000000 --- a/src/generated/Models/V1beta2StatefulSetStatus.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// StatefulSetStatus represents the current state of a StatefulSet. - /// - public partial class V1beta2StatefulSetStatus - { - /// - /// Initializes a new instance of the V1beta2StatefulSetStatus class. - /// - public V1beta2StatefulSetStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2StatefulSetStatus class. - /// - /// replicas is the number of Pods created by - /// the StatefulSet controller. - /// 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. - /// 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 V1beta2StatefulSetStatus(int replicas, int? collisionCount = default(int?), int? currentReplicas = default(int?), string currentRevision = default(string), long? observedGeneration = default(long?), int? readyReplicas = default(int?), string updateRevision = default(string), int? updatedReplicas = default(int?)) - { - CollisionCount = collisionCount; - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets readyReplicas is the number of Pods created by the - /// StatefulSet controller that have a Ready Condition. - /// - [JsonProperty(PropertyName = "readyReplicas")] - public int? ReadyReplicas { get; set; } - - /// - /// Gets or sets replicas is the number of Pods created by the - /// StatefulSet controller. - /// - [JsonProperty(PropertyName = "replicas")] - public int Replicas { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - //Nothing to validate - } - } -} diff --git a/src/generated/Models/V1beta2StatefulSetUpdateStrategy.cs b/src/generated/Models/V1beta2StatefulSetUpdateStrategy.cs deleted file mode 100644 index 0aed7a116..000000000 --- a/src/generated/Models/V1beta2StatefulSetUpdateStrategy.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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 V1beta2StatefulSetUpdateStrategy - { - /// - /// Initializes a new instance of the V1beta2StatefulSetUpdateStrategy - /// class. - /// - public V1beta2StatefulSetUpdateStrategy() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V1beta2StatefulSetUpdateStrategy - /// class. - /// - /// RollingUpdate is used to communicate - /// parameters when Type is - /// RollingUpdateStatefulSetStrategyType. - /// Type indicates the type of the - /// StatefulSetUpdateStrategy. Default is RollingUpdate. - public V1beta2StatefulSetUpdateStrategy(V1beta2RollingUpdateStatefulSetStrategy rollingUpdate = default(V1beta2RollingUpdateStatefulSetStrategy), string type = default(string)) - { - RollingUpdate = rollingUpdate; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets rollingUpdate is used to communicate parameters when - /// Type is RollingUpdateStatefulSetStrategyType. - /// - [JsonProperty(PropertyName = "rollingUpdate")] - public V1beta2RollingUpdateStatefulSetStrategy RollingUpdate { get; set; } - - /// - /// Gets or sets type indicates the type of the - /// StatefulSetUpdateStrategy. Default is RollingUpdate. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - } -} diff --git a/src/generated/Models/V2alpha1CronJob.cs b/src/generated/Models/V2alpha1CronJob.cs deleted file mode 100644 index c365ad0e3..000000000 --- a/src/generated/Models/V2alpha1CronJob.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// CronJob represents the configuration of a single cron job. - /// - public partial class V2alpha1CronJob - { - /// - /// Initializes a new instance of the V2alpha1CronJob class. - /// - public V2alpha1CronJob() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2alpha1CronJob 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/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/api-conventions.md#types-kinds - /// Standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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/api-conventions.md#spec-and-status - /// Current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V2alpha1CronJob(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V2alpha1CronJobSpec spec = default(V2alpha1CronJobSpec), V2alpha1CronJobStatus status = default(V2alpha1CronJobStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard object's metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of a cron job, - /// including the schedule. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "spec")] - public V2alpha1CronJobSpec Spec { get; set; } - - /// - /// Gets or sets current status of a cron job. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - /// - [JsonProperty(PropertyName = "status")] - public V2alpha1CronJobStatus Status { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2alpha1CronJobList.cs b/src/generated/Models/V2alpha1CronJobList.cs deleted file mode 100644 index 6681f5792..000000000 --- a/src/generated/Models/V2alpha1CronJobList.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// CronJobList is a collection of cron jobs. - /// - public partial class V2alpha1CronJobList - { - /// - /// Initializes a new instance of the V2alpha1CronJobList class. - /// - public V2alpha1CronJobList() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2alpha1CronJobList 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/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/api-conventions.md#types-kinds - /// Standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - public V2alpha1CronJobList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of CronJobs. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets standard list metadata. More info: - /// https://git.k8s.io/community/contributors/devel/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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V2alpha1CronJobSpec.cs b/src/generated/Models/V2alpha1CronJobSpec.cs deleted file mode 100644 index 20d0fe707..000000000 --- a/src/generated/Models/V2alpha1CronJobSpec.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Linq; - - /// - /// CronJobSpec describes how the job execution will look like and when it - /// will actually run. - /// - public partial class V2alpha1CronJobSpec - { - /// - /// Initializes a new instance of the V2alpha1CronJobSpec class. - /// - public V2alpha1CronJobSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2alpha1CronJobSpec 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. Defaults to Allow. - /// The number of failed finished - /// jobs to retain. This is a pointer to distinguish between explicit - /// zero and not specified. - /// 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. - /// This flag tells the controller to suspend - /// subsequent executions, it does not apply to already started - /// executions. Defaults to false. - public V2alpha1CronJobSpec(V2alpha1JobTemplateSpec jobTemplate, string schedule, string concurrencyPolicy = default(string), int? failedJobsHistoryLimit = default(int?), long? startingDeadlineSeconds = default(long?), int? successfulJobsHistoryLimit = default(int?), bool? suspend = default(bool?)) - { - 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(); - - /// - /// Gets or sets specifies how to treat concurrent executions of a Job. - /// Defaults to Allow. - /// - [JsonProperty(PropertyName = "concurrencyPolicy")] - public string ConcurrencyPolicy { get; set; } - - /// - /// Gets or sets the number of failed finished jobs to retain. This is - /// a pointer to distinguish between explicit zero and not specified. - /// - [JsonProperty(PropertyName = "failedJobsHistoryLimit")] - public int? FailedJobsHistoryLimit { get; set; } - - /// - /// Gets or sets specifies the job that will be created when executing - /// a CronJob. - /// - [JsonProperty(PropertyName = "jobTemplate")] - public V2alpha1JobTemplateSpec JobTemplate { get; set; } - - /// - /// Gets or sets the schedule in Cron format, see - /// https://en.wikipedia.org/wiki/Cron. - /// - [JsonProperty(PropertyName = "schedule")] - public string Schedule { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets the number of successful finished jobs to retain. This - /// is a pointer to distinguish between explicit zero and not - /// specified. - /// - [JsonProperty(PropertyName = "successfulJobsHistoryLimit")] - public int? SuccessfulJobsHistoryLimit { get; set; } - - /// - /// Gets or sets 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"); - } - if (Schedule == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Schedule"); - } - if (JobTemplate != null) - { - JobTemplate.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2alpha1CronJobStatus.cs b/src/generated/Models/V2alpha1CronJobStatus.cs deleted file mode 100644 index 36769dbc7..000000000 --- a/src/generated/Models/V2alpha1CronJobStatus.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// CronJobStatus represents the current state of a cron job. - /// - public partial class V2alpha1CronJobStatus - { - /// - /// Initializes a new instance of the V2alpha1CronJobStatus class. - /// - public V2alpha1CronJobStatus() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2alpha1CronJobStatus class. - /// - /// A list of pointers to currently running - /// jobs. - /// Information when was the last time - /// the job was successfully scheduled. - public V2alpha1CronJobStatus(IList active = default(IList), System.DateTime? lastScheduleTime = default(System.DateTime?)) - { - Active = active; - LastScheduleTime = lastScheduleTime; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets a list of pointers to currently running jobs. - /// - [JsonProperty(PropertyName = "active")] - public IList Active { get; set; } - - /// - /// Gets or sets information when was the last time the job was - /// successfully scheduled. - /// - [JsonProperty(PropertyName = "lastScheduleTime")] - public System.DateTime? LastScheduleTime { get; set; } - - } -} diff --git a/src/generated/Models/V2alpha1JobTemplateSpec.cs b/src/generated/Models/V2alpha1JobTemplateSpec.cs deleted file mode 100644 index ac1f8f810..000000000 --- a/src/generated/Models/V2alpha1JobTemplateSpec.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// JobTemplateSpec describes the data a Job should have when created from - /// a template - /// - public partial class V2alpha1JobTemplateSpec - { - /// - /// Initializes a new instance of the V2alpha1JobTemplateSpec class. - /// - public V2alpha1JobTemplateSpec() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the V2alpha1JobTemplateSpec class. - /// - /// Standard object's metadata of the jobs - /// created from this template. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// Specification of the desired behavior of the - /// job. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status - public V2alpha1JobTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec)) - { - Metadata = metadata; - Spec = spec; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets standard object's metadata of the jobs created from - /// this template. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets specification of the desired behavior of the job. More - /// info: - /// https://git.k8s.io/community/contributors/devel/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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1CrossVersionObjectReference.cs b/src/generated/Models/V2beta1CrossVersionObjectReference.cs deleted file mode 100644 index 17b099ab7..000000000 --- a/src/generated/Models/V2beta1CrossVersionObjectReference.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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/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 = default(string)) - { - ApiVersion = apiVersion; - Kind = kind; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets API version of the referent - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind of the referent; More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds" - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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() - { - if (Kind == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Kind"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V2beta1HorizontalPodAutoscaler.cs b/src/generated/Models/V2beta1HorizontalPodAutoscaler.cs deleted file mode 100644 index 188b6d45f..000000000 --- a/src/generated/Models/V2beta1HorizontalPodAutoscaler.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Newtonsoft.Json; - 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/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/api-conventions.md#types-kinds - /// metadata is the standard object metadata. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// spec is the specification for the behaviour of - /// the autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// status is the current information about the - /// autoscaler. - public V2beta1HorizontalPodAutoscaler(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V2beta1HorizontalPodAutoscalerSpec spec = default(V2beta1HorizontalPodAutoscalerSpec), V2beta1HorizontalPodAutoscalerStatus status = default(V2beta1HorizontalPodAutoscalerStatus)) - { - ApiVersion = apiVersion; - Kind = kind; - Metadata = metadata; - Spec = spec; - Status = status; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets metadata is the standard object metadata. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - /// - [JsonProperty(PropertyName = "metadata")] - public V1ObjectMeta Metadata { get; set; } - - /// - /// Gets or sets spec is the specification for the behaviour of the - /// autoscaler. More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. - /// - [JsonProperty(PropertyName = "spec")] - public V2beta1HorizontalPodAutoscalerSpec Spec { get; set; } - - /// - /// Gets or sets 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() - { - if (Metadata != null) - { - Metadata.Validate(); - } - if (Spec != null) - { - Spec.Validate(); - } - if (Status != null) - { - Status.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1HorizontalPodAutoscalerCondition.cs b/src/generated/Models/V2beta1HorizontalPodAutoscalerCondition.cs deleted file mode 100644 index c6ca1aaf3..000000000 --- a/src/generated/Models/V2beta1HorizontalPodAutoscalerCondition.cs +++ /dev/null @@ -1,108 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(System.DateTime?), string message = default(string), string reason = default(string)) - { - LastTransitionTime = lastTransitionTime; - Message = message; - Reason = reason; - Status = status; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets lastTransitionTime is the last time the condition - /// transitioned from one status to another - /// - [JsonProperty(PropertyName = "lastTransitionTime")] - public System.DateTime? LastTransitionTime { get; set; } - - /// - /// Gets or sets message is a human-readable explanation containing - /// details about the transition - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets reason is the reason for the condition's last - /// transition. - /// - [JsonProperty(PropertyName = "reason")] - public string Reason { get; set; } - - /// - /// Gets or sets status is the status of the condition (True, False, - /// Unknown) - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Gets or sets type describes the current condition - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Status == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Status"); - } - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - } - } -} diff --git a/src/generated/Models/V2beta1HorizontalPodAutoscalerList.cs b/src/generated/Models/V2beta1HorizontalPodAutoscalerList.cs deleted file mode 100644 index bcd7295fb..000000000 --- a/src/generated/Models/V2beta1HorizontalPodAutoscalerList.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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/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/api-conventions.md#types-kinds - /// metadata is the standard list - /// metadata. - public V2beta1HorizontalPodAutoscalerList(IList items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta)) - { - ApiVersion = apiVersion; - Items = items; - Kind = kind; - Metadata = metadata; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or 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/api-conventions.md#resources - /// - [JsonProperty(PropertyName = "apiVersion")] - public string ApiVersion { get; set; } - - /// - /// Gets or sets items is the list of horizontal pod autoscaler - /// objects. - /// - [JsonProperty(PropertyName = "items")] - public IList Items { get; set; } - - /// - /// Gets or sets kind is a string value representing the REST resource - /// this object represents. Servers may infer this from the endpoint - /// the client submits requests to. Cannot be updated. In CamelCase. - /// More info: - /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds - /// - [JsonProperty(PropertyName = "kind")] - public string Kind { get; set; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Items"); - } - if (Items != null) - { - foreach (var element in Items) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V2beta1HorizontalPodAutoscalerSpec.cs b/src/generated/Models/V2beta1HorizontalPodAutoscalerSpec.cs deleted file mode 100644 index 070127cc4..000000000 --- a/src/generated/Models/V2beta1HorizontalPodAutoscalerSpec.cs +++ /dev/null @@ -1,131 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - public V2beta1HorizontalPodAutoscalerSpec(int maxReplicas, V2beta1CrossVersionObjectReference scaleTargetRef, IList metrics = default(IList), int? minReplicas = default(int?)) - { - MaxReplicas = maxReplicas; - Metrics = metrics; - MinReplicas = minReplicas; - ScaleTargetRef = scaleTargetRef; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets minReplicas is the lower limit for the number of - /// replicas to which the autoscaler can scale down. It defaults to 1 - /// pod. - /// - [JsonProperty(PropertyName = "minReplicas")] - public int? MinReplicas { get; set; } - - /// - /// Gets or sets 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 element in Metrics) - { - if (element != null) - { - element.Validate(); - } - } - } - if (ScaleTargetRef != null) - { - ScaleTargetRef.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1HorizontalPodAutoscalerStatus.cs b/src/generated/Models/V2beta1HorizontalPodAutoscalerStatus.cs deleted file mode 100644 index 126c5c25a..000000000 --- a/src/generated/Models/V2beta1HorizontalPodAutoscalerStatus.cs +++ /dev/null @@ -1,150 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - 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. - /// currentMetrics is the last read state - /// of the metrics used by this autoscaler. - /// 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. - /// 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, IList currentMetrics, int currentReplicas, int desiredReplicas, System.DateTime? lastScaleTime = default(System.DateTime?), long? observedGeneration = default(long?)) - { - 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(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets currentMetrics is the last read state of the metrics - /// used by this autoscaler. - /// - [JsonProperty(PropertyName = "currentMetrics")] - public IList CurrentMetrics { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Conditions"); - } - if (CurrentMetrics == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentMetrics"); - } - if (Conditions != null) - { - foreach (var element in Conditions) - { - if (element != null) - { - element.Validate(); - } - } - } - if (CurrentMetrics != null) - { - foreach (var element1 in CurrentMetrics) - { - if (element1 != null) - { - element1.Validate(); - } - } - } - } - } -} diff --git a/src/generated/Models/V2beta1MetricSpec.cs b/src/generated/Models/V2beta1MetricSpec.cs deleted file mode 100644 index 5262d4f74..000000000 --- a/src/generated/Models/V2beta1MetricSpec.cs +++ /dev/null @@ -1,120 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 - /// match one of the fields below. - /// 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, V2beta1ObjectMetricSource objectProperty = default(V2beta1ObjectMetricSource), V2beta1PodsMetricSource pods = default(V2beta1PodsMetricSource), V2beta1ResourceMetricSource resource = default(V2beta1ResourceMetricSource)) - { - ObjectProperty = objectProperty; - Pods = pods; - Resource = resource; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets type is the type of metric source. It should match - /// one of the fields below. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - if (ObjectProperty != null) - { - ObjectProperty.Validate(); - } - if (Pods != null) - { - Pods.Validate(); - } - if (Resource != null) - { - Resource.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1MetricStatus.cs b/src/generated/Models/V2beta1MetricStatus.cs deleted file mode 100644 index 22eb1e19e..000000000 --- a/src/generated/Models/V2beta1MetricStatus.cs +++ /dev/null @@ -1,119 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 - /// match one of the fields below. - /// 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, V2beta1ObjectMetricStatus objectProperty = default(V2beta1ObjectMetricStatus), V2beta1PodsMetricStatus pods = default(V2beta1PodsMetricStatus), V2beta1ResourceMetricStatus resource = default(V2beta1ResourceMetricStatus)) - { - ObjectProperty = objectProperty; - Pods = pods; - Resource = resource; - Type = type; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets type is the type of metric source. It will match one - /// of the fields below. - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Type == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Type"); - } - if (ObjectProperty != null) - { - ObjectProperty.Validate(); - } - if (Pods != null) - { - Pods.Validate(); - } - if (Resource != null) - { - Resource.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1ObjectMetricSource.cs b/src/generated/Models/V2beta1ObjectMetricSource.cs deleted file mode 100644 index 707db6e1d..000000000 --- a/src/generated/Models/V2beta1ObjectMetricSource.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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). - public V2beta1ObjectMetricSource(string metricName, V2beta1CrossVersionObjectReference target, ResourceQuantity targetValue) - { - MetricName = metricName; - Target = target; - TargetValue = targetValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets metricName is the name of the metric in question. - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// Gets or sets target is the described Kubernetes object. - /// - [JsonProperty(PropertyName = "target")] - public V2beta1CrossVersionObjectReference Target { get; set; } - - /// - /// Gets or sets 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 (MetricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MetricName"); - } - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - if (TargetValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TargetValue"); - } - if (Target != null) - { - Target.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1ObjectMetricStatus.cs b/src/generated/Models/V2beta1ObjectMetricStatus.cs deleted file mode 100644 index 70495cd00..000000000 --- a/src/generated/Models/V2beta1ObjectMetricStatus.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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. - public V2beta1ObjectMetricStatus(ResourceQuantity currentValue, string metricName, V2beta1CrossVersionObjectReference target) - { - CurrentValue = currentValue; - MetricName = metricName; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets currentValue is the current value of the metric (as a - /// quantity). - /// - [JsonProperty(PropertyName = "currentValue")] - public ResourceQuantity CurrentValue { get; set; } - - /// - /// Gets or sets metricName is the name of the metric in question. - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// Gets or sets 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 (MetricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MetricName"); - } - if (Target == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Target"); - } - if (Target != null) - { - Target.Validate(); - } - } - } -} diff --git a/src/generated/Models/V2beta1PodsMetricSource.cs b/src/generated/Models/V2beta1PodsMetricSource.cs deleted file mode 100644 index cf284fa9a..000000000 --- a/src/generated/Models/V2beta1PodsMetricSource.cs +++ /dev/null @@ -1,80 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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) - public V2beta1PodsMetricSource(string metricName, ResourceQuantity targetAverageValue) - { - MetricName = metricName; - TargetAverageValue = targetAverageValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets metricName is the name of the metric in question - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// Gets or sets 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 (MetricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MetricName"); - } - if (TargetAverageValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "TargetAverageValue"); - } - } - } -} diff --git a/src/generated/Models/V2beta1PodsMetricStatus.cs b/src/generated/Models/V2beta1PodsMetricStatus.cs deleted file mode 100644 index 2875be12b..000000000 --- a/src/generated/Models/V2beta1PodsMetricStatus.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 - public V2beta1PodsMetricStatus(ResourceQuantity currentAverageValue, string metricName) - { - CurrentAverageValue = currentAverageValue; - MetricName = metricName; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets metricName is the name of the metric in question - /// - [JsonProperty(PropertyName = "metricName")] - public string MetricName { get; set; } - - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (CurrentAverageValue == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "CurrentAverageValue"); - } - if (MetricName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MetricName"); - } - } - } -} diff --git a/src/generated/Models/V2beta1ResourceMetricSource.cs b/src/generated/Models/V2beta1ResourceMetricSource.cs deleted file mode 100644 index 0a1c8e8d5..000000000 --- a/src/generated/Models/V2beta1ResourceMetricSource.cs +++ /dev/null @@ -1,98 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(int?), ResourceQuantity targetAverageValue = default(ResourceQuantity)) - { - Name = name; - TargetAverageUtilization = targetAverageUtilization; - TargetAverageValue = targetAverageValue; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets name is the name of the resource in question. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/V2beta1ResourceMetricStatus.cs b/src/generated/Models/V2beta1ResourceMetricStatus.cs deleted file mode 100644 index c097762ff..000000000 --- a/src/generated/Models/V2beta1ResourceMetricStatus.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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 = default(int?)) - { - CurrentAverageUtilization = currentAverageUtilization; - CurrentAverageValue = currentAverageValue; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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; } - - /// - /// Gets or sets 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"); - } - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/src/generated/Models/VersionInfo.cs b/src/generated/Models/VersionInfo.cs deleted file mode 100644 index bf3f7e896..000000000 --- a/src/generated/Models/VersionInfo.cs +++ /dev/null @@ -1,140 +0,0 @@ -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace k8s.Models -{ - using Microsoft.Rest; - using Newtonsoft.Json; - 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() - { - if (BuildDate == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "BuildDate"); - } - if (Compiler == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Compiler"); - } - if (GitCommit == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "GitCommit"); - } - if (GitTreeState == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "GitTreeState"); - } - if (GitVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "GitVersion"); - } - if (GoVersion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "GoVersion"); - } - if (Major == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Major"); - } - if (Minor == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Minor"); - } - if (Platform == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Platform"); - } - } - } -} diff --git a/src/generated/swagger.json b/src/generated/swagger.json deleted file mode 100644 index cdfa29dc1..000000000 --- a/src/generated/swagger.json +++ /dev/null @@ -1,67558 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Kubernetes", - "version": "v1.8.4" - }, - "paths": { - "/api/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core" - ], - "operationId": "getAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIVersions" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/v1/componentstatuses": { - "get": { - "description": "list objects of kind ComponentStatus", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listComponentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatusList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/componentstatuses/{name}": { - "get": { - "description": "read the specified ComponentStatus", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readComponentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ComponentStatus" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ComponentStatus", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/configmaps": { - "get": { - "description": "list or watch objects of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listConfigMapForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/endpoints": { - "get": { - "description": "list or watch objects of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listEndpointsForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/events": { - "get": { - "description": "list or watch objects of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listEventForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/limitranges": { - "get": { - "description": "list or watch objects of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listLimitRangeForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/namespaces": { - "get": { - "description": "list or watch objects of kind Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespace", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NamespaceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "post": { - "description": "create a Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/bindings": { - "post": { - "description": "create a Binding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/configmaps": { - "get": { - "description": "list or watch objects of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "post": { - "description": "create a ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/configmaps/{name}": { - "get": { - "description": "read the specified ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "delete": { - "description": "delete a ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ConfigMap", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/endpoints": { - "get": { - "description": "list or watch objects of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "post": { - "description": "create Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/endpoints/{name}": { - "get": { - "description": "read the specified Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "delete": { - "description": "delete Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Endpoints", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/events": { - "get": { - "description": "list or watch objects of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "post": { - "description": "create an Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Event" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/events/{name}": { - "get": { - "description": "read the specified Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Event" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "delete": { - "description": "delete an Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Event", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Event", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/limitranges": { - "get": { - "description": "list or watch objects of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "post": { - "description": "create a LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/limitranges/{name}": { - "get": { - "description": "read the specified LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "put": { - "description": "replace the specified LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "delete": { - "description": "delete a LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified LimitRange", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the LimitRange", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "description": "list or watch objects of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "post": { - "description": "create a PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "get": { - "description": "read the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "put": { - "description": "replace the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "delete": { - "description": "delete a PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified PersistentVolumeClaim", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { - "get": { - "description": "read status of the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPersistentVolumeClaimStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified PersistentVolumeClaim", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods": { - "get": { - "description": "list or watch objects of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "create a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "read the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "delete a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Pod", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/attach": { - "get": { - "description": "connect GET requests to attach of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodAttach", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to attach of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodAttach", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "name": "stderr", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "name": "stdin", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "name": "stdout", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "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.", - "name": "tty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/binding": { - "post": { - "description": "create binding of a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPodBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Binding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Binding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { - "post": { - "description": "create eviction of a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPodEviction", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Eviction" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Eviction" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "Eviction", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Eviction", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/exec": { - "get": { - "description": "connect GET requests to exec of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodExec", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to exec of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodExec", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "Command is the remote command to execute. argv array. Not executed within a shell.", - "name": "command", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", - "name": "stderr", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "name": "stdin", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", - "name": "stdout", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", - "name": "tty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/log": { - "get": { - "description": "read log of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "text/plain", - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPodLog", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.", - "name": "follow", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "limitBytes", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.", - "name": "previous", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "sinceSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "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", - "name": "tailLines", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "name": "timestamps", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { - "get": { - "description": "connect GET requests to portforward of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodPortforward", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to portforward of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodPortforward", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "integer", - "description": "List of ports to forward Required when using WebSockets", - "name": "ports", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPatchNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to pod.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPatchNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to pod.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/status": { - "get": { - "description": "read status of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPodStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPodStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Pod", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPodStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/podtemplates": { - "get": { - "description": "list or watch objects of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "post": { - "description": "create a PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/podtemplates/{name}": { - "get": { - "description": "read the specified PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "put": { - "description": "replace the specified PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "delete": { - "description": "delete a PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified PodTemplate", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodTemplate", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers": { - "get": { - "description": "list or watch objects of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "post": { - "description": "create a ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}": { - "get": { - "description": "read the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "delete": { - "description": "delete a ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedReplicationControllerScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "put": { - "description": "replace scale of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedReplicationControllerScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedReplicationControllerScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status": { - "get": { - "description": "read status of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedReplicationControllerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedReplicationControllerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedReplicationControllerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "post": { - "description": "create a ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}": { - "get": { - "description": "read the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "delete": { - "description": "delete a ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ResourceQuota", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status": { - "get": { - "description": "read status of the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedResourceQuotaStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedResourceQuotaStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified ResourceQuota", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedResourceQuotaStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/secrets": { - "get": { - "description": "list or watch objects of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "post": { - "description": "create a Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Secret" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/secrets/{name}": { - "get": { - "description": "read the specified Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Secret" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "delete": { - "description": "delete a Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Secret", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Secret", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "post": { - "description": "create a ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/serviceaccounts/{name}": { - "get": { - "description": "read the specified ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "delete": { - "description": "delete a ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ServiceAccount", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ServiceAccount", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services": { - "get": { - "description": "list or watch objects of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNamespacedService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "create a Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}": { - "get": { - "description": "read the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedService", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "delete a Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Service", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPatchNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPatchNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/status": { - "get": { - "description": "read status of the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespacedServiceStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespacedServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Service", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespacedServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}": { - "get": { - "description": "read the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespace", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "delete": { - "description": "delete a Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Namespace", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}/finalize": { - "put": { - "description": "replace finalize of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespaceFinalize", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}/status": { - "get": { - "description": "read status of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNamespaceStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNamespaceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Namespace", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNamespaceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes": { - "get": { - "description": "list or watch objects of kind Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listNode", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NodeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "create a Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionNode", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}": { - "get": { - "description": "read the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNode", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "delete a Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Node", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNode", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPatchNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to node.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectGetNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPutNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPostNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectDeleteNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectOptionsNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectHeadNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectPatchNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to node.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/status": { - "get": { - "description": "read status of the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readNodeStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceNodeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Node", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchNodeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumeclaims": { - "get": { - "description": "list or watch objects of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPersistentVolumeClaimForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes": { - "get": { - "description": "list or watch objects of kind PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolumeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "post": { - "description": "create a PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createPersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCollectionPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes/{name}": { - "get": { - "description": "read the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "put": { - "description": "replace the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replacePersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "delete": { - "description": "delete a PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deletePersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified PersistentVolume", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchPersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes/{name}/status": { - "get": { - "description": "read status of the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readPersistentVolumeStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replacePersistentVolumeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified PersistentVolume", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchPersistentVolumeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/pods": { - "get": { - "description": "list or watch objects of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPodForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/podtemplates": { - "get": { - "description": "list or watch objects of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listPodTemplateForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "proxy GET requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}": { - "get": { - "description": "proxy GET requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/services/{name}": { - "get": { - "description": "proxy GET requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}": { - "get": { - "description": "proxy GET requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/nodes/{name}": { - "get": { - "description": "proxy GET requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/nodes/{name}/{path}": { - "get": { - "description": "proxy GET requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyGETNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPUTNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPOSTNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyDELETENodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyOPTIONSNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyHEADNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyPATCHNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/replicationcontrollers": { - "get": { - "description": "list or watch objects of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listReplicationControllerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listResourceQuotaForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/secrets": { - "get": { - "description": "list or watch objects of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listSecretForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listServiceAccountForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/services": { - "get": { - "description": "list or watch objects of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listServiceForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/configmaps": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/endpoints": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/events": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/limitranges": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Event", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the LimitRange", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodTemplate", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Secret", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ServiceAccount", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumeclaims": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/pods": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/podtemplates": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/replicationcontrollers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/resourcequotas": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/secrets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/serviceaccounts": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/services": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apis" - ], - "operationId": "getAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroupList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/admissionregistration.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/admissionregistration.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations": { - "get": { - "description": "list or watch objects of kind ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "listExternalAdmissionHookConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "post": { - "description": "create an ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "createExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteCollectionExternalAdmissionHookConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}": { - "get": { - "description": "read the specified ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "readExternalAdmissionHookConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "replaceExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete an ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified ExternalAdmissionHookConfiguration", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "patchExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ExternalAdmissionHookConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations": { - "get": { - "description": "list or watch objects of kind InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "listInitializerConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "post": { - "description": "create an InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "createInitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteCollectionInitializerConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}": { - "get": { - "description": "read the specified InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "readInitializerConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "replaceInitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete an InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteInitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified InitializerConfiguration", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "patchInitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the InitializerConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/externaladmissionhookconfigurations": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/externaladmissionhookconfigurations/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ExternalAdmissionHookConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/initializerconfigurations": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/initializerconfigurations/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the InitializerConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiextensions.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions": { - "get": { - "description": "list or watch objects of kind CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "listCustomResourceDefinition", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinitionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "post": { - "description": "create a CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "createCustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "deleteCollectionCustomResourceDefinition", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}": { - "get": { - "description": "read the specified CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "readCustomResourceDefinition", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "replaceCustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "deleteCustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified CustomResourceDefinition", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "patchCustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CustomResourceDefinition", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status": { - "put": { - "description": "replace status of the specified CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "replaceCustomResourceDefinitionStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CustomResourceDefinition", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CustomResourceDefinition", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiregistration.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiregistration.k8s.io/v1beta1/apiservices": { - "get": { - "description": "list or watch objects of kind APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "listAPIService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.APIServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "post": { - "description": "create an APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "createAPIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "deleteCollectionAPIService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}": { - "get": { - "description": "read the specified APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "readAPIService", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "replaceAPIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete an APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "deleteAPIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified APIService", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "patchAPIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the APIService", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status": { - "put": { - "description": "replace status of the specified APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "replaceAPIServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the APIService", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the APIService", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listControllerRevisionForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listDeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteCollectionNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "description": "read the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ControllerRevision", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedDeploymentRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DeploymentRollback", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeploymentScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "post": { - "description": "create a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteCollectionNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "read the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale": { - "get": { - "description": "read scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedStatefulSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "description": "read status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readNamespacedStatefulSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listStatefulSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/controllerrevisions": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta2/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listControllerRevisionForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listDaemonSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listDeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "post": { - "description": "create a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteCollectionNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "description": "read the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified ControllerRevision", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "post": { - "description": "create a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteCollectionNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "read the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "description": "read status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedDaemonSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedDeploymentScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "put": { - "description": "replace scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update scale of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "post": { - "description": "create a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteCollectionNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "read the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedReplicaSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "put": { - "description": "replace scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status": { - "get": { - "description": "read status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedReplicaSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "post": { - "description": "create a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteCollectionNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "read the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale": { - "get": { - "description": "read scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedStatefulSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "put": { - "description": "replace scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update scale of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "description": "read status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readNamespacedStatefulSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchNamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listReplicaSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listStatefulSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/controllerrevisions": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/replicasets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/statefulsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { - "post": { - "description": "create a TokenReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "operationId": "createTokenReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1beta1/tokenreviews": { - "post": { - "description": "create a TokenReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "createTokenReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createNamespacedLocalSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createSelfSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { - "post": { - "description": "create a SelfSubjectRulesReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createSelfSubjectRulesReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createNamespacedLocalSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createSelfSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews": { - "post": { - "description": "create a SelfSubjectRulesReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createSelfSubjectRulesReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectRulesReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "put": { - "description": "replace the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "delete": { - "description": "delete a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "description": "read status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v2beta1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "readNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "description": "replace the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "delete": { - "description": "delete a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "description": "read status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "post": { - "description": "create a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "createNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteCollectionNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "read the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "readNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "replaceNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "delete": { - "description": "delete a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Job", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "patchNamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { - "get": { - "description": "read status of the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "readNamespacedJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "replaceNamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Job", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "patchNamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1beta1/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "listCronJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "listNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "post": { - "description": "create a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "createNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "deleteCollectionNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "read the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "readNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "replaceNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "deleteNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "patchNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "description": "read status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "readNamespacedCronJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "replaceNamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "patchNamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/watch/cronjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v2alpha1/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listCronJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "post": { - "description": "create a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "createNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "delete": { - "description": "delete collection of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteCollectionNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "read the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "put": { - "description": "replace the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "delete": { - "description": "delete a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "patch": { - "description": "partially update the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "description": "read status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readNamespacedCronJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "put": { - "description": "replace status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceNamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "patch": { - "description": "partially update status of the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchNamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/cronjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests": { - "get": { - "description": "list or watch objects of kind CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "listCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequestList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "post": { - "description": "create a CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "createCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "deleteCollectionCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}": { - "get": { - "description": "read the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "readCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "deleteCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified CertificateSigningRequest", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "patchCertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval": { - "put": { - "description": "replace approval of the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificateSigningRequestApproval", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status": { - "put": { - "description": "replace status of the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificateSigningRequestStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/extensions/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/extensions/v1beta1/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listDaemonSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listDeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listIngressForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "post": { - "description": "create a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "read the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "description": "read status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDaemonSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedDeploymentRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DeploymentRollback", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeploymentScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "post": { - "description": "create an Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { - "get": { - "description": "read the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete an Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Ingress", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { - "get": { - "description": "read status of the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedIngressStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedIngressStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified Ingress", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedIngressStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "post": { - "description": "create a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "read the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified NetworkPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "read the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicaSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status": { - "get": { - "description": "read status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicaSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicationControllerDummy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readNamespacedReplicationControllerDummyScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified ReplicationControllerDummy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceNamespacedReplicationControllerDummyScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicationControllerDummy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchNamespacedReplicationControllerDummyScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listNetworkPolicyForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies": { - "get": { - "description": "list or watch objects of kind PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "post": { - "description": "create a PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createPodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteCollectionPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies/{name}": { - "get": { - "description": "read the specified PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replacePodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deletePodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified PodSecurityPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchPodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listReplicaSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/ingresses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/replicasets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "listNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "post": { - "description": "create a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "createNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "deleteCollectionNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "read the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "readNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "put": { - "description": "replace the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "replaceNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "delete": { - "description": "delete a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "deleteNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified NetworkPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "patchNamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "listNetworkPolicyForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "post": { - "description": "create a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "createNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "description": "read the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replaceNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deleteNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchNamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "description": "read status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readNamespacedPodDisruptionBudgetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchNamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listPodDisruptionBudgetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/poddisruptionbudgets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteCollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteCollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readNamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteCollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readNamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readNamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteCollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readNamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readNamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchNamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteCollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readNamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchNamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/scheduling.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/scheduling.k8s.io/v1alpha1/priorityclasses": { - "get": { - "description": "list or watch objects of kind PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "listPriorityClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "createPriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "deleteCollectionPriorityClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}": { - "get": { - "description": "read the specified PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "readPriorityClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "replacePriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "deletePriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified PriorityClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "patchPriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PriorityClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PriorityClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "listNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPresetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "createNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "deleteCollectionNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}": { - "get": { - "description": "read the specified PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "readNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "replaceNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "deleteNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified PodPreset", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "patchNamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "listPodPresetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.PodPresetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage" - ], - "operationId": "getAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "listStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "post": { - "description": "create a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "createStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "deleteCollectionStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "readStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "put": { - "description": "replace the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "replaceStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "delete": { - "description": "delete a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "deleteStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified StorageClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "patchStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "getAPIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1beta1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "listStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "post": { - "description": "create a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "createStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "deleteCollectionStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "readStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "replaceStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "deleteStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified StorageClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "patchStorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/logs/": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileListHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - } - } - }, - "/logs/{logpath}": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "path to the log", - "name": "logpath", - "in": "path", - "required": true - } - ] - }, - "/version/": { - "get": { - "description": "get the code version", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "schemes": [ - "https" - ], - "tags": [ - "version" - ], - "operationId": "getCode", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/version.Info" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/{group}/{version}/{plural}": { - "post": { - "responses": { - "201": { - "description": "Created", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "Creates a cluster scoped Custom object", - "parameters": [ - { - "schema": { - "type": "object" - }, - "description": "The JSON schema of the Resource to create.", - "required": true, - "name": "body", - "in": "body" - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "operationId": "createClusterCustomObject" - }, - "parameters": [ - { - "uniqueItems": true, - "in": "query", - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty" - }, - { - "description": "The custom resource's group name", - "required": true, - "type": "string", - "name": "group", - "in": "path" - }, - { - "description": "The custom resource's version", - "required": true, - "type": "string", - "name": "version", - "in": "path" - }, - { - "description": "The custom resource's plural name. For TPRs this would be lowercase plural kind.", - "required": true, - "type": "string", - "name": "plural", - "in": "path" - } - ], - "get": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "list or watch cluster scoped custom objects", - "parameters": [ - { - "uniqueItems": true, - "in": "query", - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector" - }, - { - "uniqueItems": true, - "in": "query", - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion" - }, - { - "uniqueItems": true, - "in": "query", - "type": "boolean", - "name": "watch", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications." - } - ], - "tags": [ - "custom_objects" - ], - "produces": [ - "application/json", - "application/json;stream=watch" - ], - "consumes": [ - "*/*" - ], - "operationId": "listClusterCustomObject" - } - }, - "/apis/{group}/{version}/namespaces/{namespace}/{plural}": { - "post": { - "responses": { - "201": { - "description": "Created", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "Creates a namespace scoped Custom object", - "parameters": [ - { - "schema": { - "type": "object" - }, - "description": "The JSON schema of the Resource to create.", - "required": true, - "name": "body", - "in": "body" - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "operationId": "createNamespacedCustomObject" - }, - "parameters": [ - { - "uniqueItems": true, - "in": "query", - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty" - }, - { - "description": "The custom resource's group name", - "required": true, - "type": "string", - "name": "group", - "in": "path" - }, - { - "description": "The custom resource's version", - "required": true, - "type": "string", - "name": "version", - "in": "path" - }, - { - "description": "The custom resource's namespace", - "required": true, - "type": "string", - "name": "namespace", - "in": "path" - }, - { - "description": "The custom resource's plural name. For TPRs this would be lowercase plural kind.", - "required": true, - "type": "string", - "name": "plural", - "in": "path" - } - ], - "get": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "list or watch namespace scoped custom objects", - "parameters": [ - { - "uniqueItems": true, - "in": "query", - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector" - }, - { - "uniqueItems": true, - "in": "query", - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion" - }, - { - "uniqueItems": true, - "in": "query", - "type": "boolean", - "name": "watch", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications." - } - ], - "tags": [ - "custom_objects" - ], - "produces": [ - "application/json", - "application/json;stream=watch" - ], - "consumes": [ - "*/*" - ], - "operationId": "listNamespacedCustomObject" - } - }, - "/apis/{group}/{version}/{plural}/{name}": { - "put": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "replace the specified cluster scoped custom object", - "parameters": [ - { - "schema": { - "type": "object" - }, - "description": "The JSON schema of the Resource to replace.", - "required": true, - "name": "body", - "in": "body" - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "consumes": [ - "*/*" - ], - "operationId": "replaceClusterCustomObject" - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "Deletes the specified cluster scoped custom object", - "parameters": [ - { - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - }, - "required": true, - "name": "body", - "in": "body" - }, - { - "uniqueItems": true, - "in": "query", - "type": "integer", - "name": "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." - }, - { - "uniqueItems": true, - "in": "query", - "type": "boolean", - "name": "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." - }, - { - "uniqueItems": true, - "in": "query", - "type": "string", - "name": "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." - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "consumes": [ - "*/*" - ], - "operationId": "deleteClusterCustomObject" - }, - "parameters": [ - { - "description": "the custom resource's group", - "required": true, - "type": "string", - "name": "group", - "in": "path" - }, - { - "description": "the custom resource's version", - "required": true, - "type": "string", - "name": "version", - "in": "path" - }, - { - "description": "the custom object's plural name. For TPRs this would be lowercase plural kind.", - "required": true, - "type": "string", - "name": "plural", - "in": "path" - }, - { - "description": "the custom object's name", - "required": true, - "type": "string", - "name": "name", - "in": "path" - } - ], - "get": { - "responses": { - "200": { - "description": "A single Resource", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "Returns a cluster scoped custom object", - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "consumes": [ - "*/*" - ], - "operationId": "getClusterCustomObject" - } - }, - "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}": { - "put": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "replace the specified namespace scoped custom object", - "parameters": [ - { - "schema": { - "type": "object" - }, - "description": "The JSON schema of the Resource to replace.", - "required": true, - "name": "body", - "in": "body" - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "consumes": [ - "*/*" - ], - "operationId": "replaceNamespacedCustomObject" - }, - "delete": { - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "Deletes the specified namespace scoped custom object", - "parameters": [ - { - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - }, - "required": true, - "name": "body", - "in": "body" - }, - { - "uniqueItems": true, - "in": "query", - "type": "integer", - "name": "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." - }, - { - "uniqueItems": true, - "in": "query", - "type": "boolean", - "name": "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." - }, - { - "uniqueItems": true, - "in": "query", - "type": "string", - "name": "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." - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "consumes": [ - "*/*" - ], - "operationId": "deleteNamespacedCustomObject" - }, - "parameters": [ - { - "description": "the custom resource's group", - "required": true, - "type": "string", - "name": "group", - "in": "path" - }, - { - "description": "the custom resource's version", - "required": true, - "type": "string", - "name": "version", - "in": "path" - }, - { - "description": "The custom resource's namespace", - "required": true, - "type": "string", - "name": "namespace", - "in": "path" - }, - { - "description": "the custom resource's plural name. For TPRs this would be lowercase plural kind.", - "required": true, - "type": "string", - "name": "plural", - "in": "path" - }, - { - "description": "the custom object's name", - "required": true, - "type": "string", - "name": "name", - "in": "path" - } - ], - "get": { - "responses": { - "200": { - "description": "A single Resource", - "schema": { - "type": "object" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "description": "Returns a namespace scoped custom object", - "produces": [ - "application/json" - ], - "tags": [ - "custom_objects" - ], - "consumes": [ - "*/*" - ], - "operationId": "getNamespacedCustomObject" - } - } - }, - "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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated.", - "$ref": "#/definitions/v1.SelfSubjectRulesReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates the set of actions a user can perform.", - "$ref": "#/definitions/v1.SubjectRulesReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - ] - }, - "extensions.v1beta1.ScaleSpec": { - "description": "describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "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" - } - } - }, - "apps.v1beta1.RollbackConfig": { - "description": "DEPRECATED.", - "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollback to the last revision.", - "type": "integer", - "format": "int64" - } - } - }, - "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" - } - } - }, - "v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", - "required": [ - "key" - ], - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or it's key must be defined", - "type": "boolean" - } - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeAddress" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "allocatable": { - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "capacity": { - "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "daemonEndpoints": { - "description": "Endpoints of daemons running on the Node.", - "$ref": "#/definitions/v1.NodeDaemonEndpoints" - }, - "images": { - "description": "List of container images on this node", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerImage" - } - }, - "nodeInfo": { - "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", - "$ref": "#/definitions/v1.NodeSystemInfo" - }, - "phase": { - "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", - "type": "string" - }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.AttachedVolume" - } - }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "required": [ - "backend" - ], - "properties": { - "backend": { - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", - "$ref": "#/definitions/v1beta1.IngressBackend" - }, - "path": { - "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) 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 '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", - "type": "string" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec" - }, - "status": { - "description": "Most recently observed status of the PodDisruptionBudget.", - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - ] - }, - "v1.ProjectedVolumeSource": { - "description": "Represents a projected volume source", - "required": [ - "sources" - ], - "properties": { - "defaultMode": { - "description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "sources": { - "description": "list of volume projections", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeProjection" - } - } - } - }, - "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": { - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "volumeName": { - "description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - } - }, - "v1.PodList": { - "description": "PodList is a list of Pods.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Pod" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodList", - "version": "v1" - } - ] - }, - "v1beta1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "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", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "group": { - "description": "Groups is the groups you're testing for.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" - }, - "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 \"Group\", then is it interpreted as \"What if User were not a member of any groups", - "type": "string" - } - } - }, - "v1beta1.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", - "properties": { - "maxUnavailable": { - "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. 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.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "v1alpha1.PriorityClass": { - "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "required": [ - "value" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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.", - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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.", - "type": "integer", - "format": "int32" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - ] - }, - "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.", - "required": [ - "monitors" - ], - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/v1.SecretReference" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "v1beta1.CustomResourceValidation": { - "description": "CustomResourceValidation is a list of validation methods for CustomResources.", - "properties": { - "openAPIV3Schema": { - "description": "OpenAPIV3Schema is the OpenAPI v3 schema to be validated against.", - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - } - }, - "v1beta2.DaemonSetUpdateStrategy": { - "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", - "$ref": "#/definitions/v1beta2.RollingUpdateDaemonSet" - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", - "properties": { - "add": { - "description": "Added capabilities", - "type": "array", - "items": { - "type": "string" - } - }, - "drop": { - "description": "Removed capabilities", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apps.v1beta1.DeploymentRollback": { - "description": "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/apps.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - ] - }, - "v1alpha1.ExternalAdmissionHook": { - "description": "ExternalAdmissionHook describes an external admission webhook and the resources and operations it applies to.", - "required": [ - "name", - "clientConfig" - ], - "properties": { - "clientConfig": { - "description": "ClientConfig defines how to communicate with the hook. Required", - "$ref": "#/definitions/v1alpha1.AdmissionHookClientConfig" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "type": "string" - }, - "name": { - "description": "The name of the external 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" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.RuleWithOperations" - } - } - } - }, - "v1beta1.NetworkPolicyList": { - "description": "Network Policy List is a list of NetworkPolicy objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "NetworkPolicyList", - "version": "v1beta1" - } - ] - }, - "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.", - "required": [ - "provisioner" - ], - "properties": { - "allowVolumeExpansion": { - "description": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "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" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - ] - }, - "v1.LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "required": [ - "key", - "operator" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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" - } - } - }, - "v1.SecretList": { - "description": "SecretList is a list of Secret.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Secret" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "SecretList", - "version": "v1" - } - ] - }, - "v1beta1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1beta1" - } - ] - }, - "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" - } - } - }, - "v1.ServicePort": { - "description": "ServicePort contains information on service's port.", - "required": [ - "port" - ], - "properties": { - "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. This maps to the 'Name' field in EndpointPort objects. 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=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", - "type": "integer", - "format": "int32" - }, - "port": { - "description": "The port that will be exposed by this service.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.", - "type": "string" - }, - "targetPort": { - "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", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ReplicationController" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ReplicationControllerList", - "version": "v1" - } - ] - }, - "v1beta1.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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated.", - "$ref": "#/definitions/v1beta1.SelfSubjectRulesReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates the set of actions a user can perform.", - "$ref": "#/definitions/v1beta1.SubjectRulesReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1beta1" - } - ] - }, - "v1beta1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - ] - }, - "v1beta1.RoleList": { - "description": "RoleList is a collection of Roles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1beta1" - } - ] - }, - "v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], - "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/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" - } - } - }, - "v1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1.ResourceAttributes" - } - } - }, - "apps.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/apps.v1beta1.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "v1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1" - } - ] - }, - "v1.GroupVersionForDiscovery": { - "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", - "required": [ - "groupVersion", - "version" - ], - "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" - } - } - }, - "v1.ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ComponentStatus objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ComponentStatus" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatusList", - "version": "v1" - } - ] - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" - } - } - } - }, - "v1beta1.DaemonSetUpdateStrategy": { - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", - "$ref": "#/definitions/v1beta1.RollingUpdateDaemonSet" - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - } - }, - "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": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "type": "integer", - "format": "int32" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1beta2.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/v1beta2.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - ] - }, - "v1alpha1.Rule": { - "description": "Rule is a tuple of APIGroups, APIVersion, 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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "volumeID" - ], - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "volumeID": { - "description": "volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" - } - } - }, - "v1.NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects.", - "required": [ - "matchExpressions" - ], - "properties": { - "matchExpressions": { - "description": "Required. A list of node selector requirements. The requirements are ANDed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeSelectorRequirement" - } - } - } - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" - }, - "selector": { - "description": "A label query over volumes to consider for binding.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "storageClassName": { - "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeName": { - "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - } - }, - "v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replication controller's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ReplicationControllerCondition" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replication controller.", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of horizontal pod autoscaler objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "metadata is the standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta1" - } - ] - }, - "extensions.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "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)", - "type": "integer", - "format": "int32" - }, - "paused": { - "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "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. This is not set by default.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "x-kubernetes-patch-strategy": "retainKeys", - "$ref": "#/definitions/extensions.v1beta1.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", - "required": [ - "port" - ], - "properties": { - "name": { - "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", - "type": "string" - } - } - }, - "apps.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/apps.v1beta1.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentList", - "version": "v1beta1" - } - ] - }, - "v1beta1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "required": [ - "serviceName", - "servicePort" - ], - "properties": { - "serviceName": { - "description": "Specifies the name of the referenced service.", - "type": "string" - }, - "servicePort": { - "description": "Specifies the port of the referenced service.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "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.", - "required": [ - "kind", - "name" - ], - "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" - } - } - }, - "v2alpha1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" - } - } - }, - "v1.ResourceQuotaSpec": { - "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", - "properties": { - "hard": { - "description": "Hard is the set of desired hard limits for each named resource. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "scopes": { - "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - } - } - } - }, - "v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec contains information for locating and communicating with a server", - "$ref": "#/definitions/v1beta1.APIServiceSpec" - }, - "status": { - "description": "Status contains derived information about an API server", - "$ref": "#/definitions/v1beta1.APIServiceStatus" - } - } - }, - "v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressSpec" - }, - "status": { - "description": "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.IngressStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - ] - }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "required": [ - "disruptedPods", - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "properties": { - "currentHealthy": { - "description": "current number of healthy pods", - "type": "integer", - "format": "int32" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "type": "integer", - "format": "int32" - }, - "disruptedPods": { - "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", - "additionalProperties": { - "type": "string", - "format": "date-time" - } - }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "type": "integer", - "format": "int32" - }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", - "type": "integer", - "format": "int64" - } - } - }, - "v1beta1.IDRange": { - "description": "ID Range provides a min/max of an allowed range of IDs.", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "description": "Max is the end of the range, inclusive.", - "type": "integer", - "format": "int64" - }, - "min": { - "description": "Min is the start of the range, inclusive.", - "type": "integer", - "format": "int64" - } - } - }, - "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 tches that of any node on which a pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "namespaces": { - "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", - "type": "array", - "items": { - "type": "string" - } - }, - "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. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.", - "type": "string" - } - } - }, - "v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", - "$ref": "#/definitions/v1.LoadBalancerStatus" - } - } - }, - "v1beta2.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.", - "required": [ - "revision" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data is the serialized representation of the state.", - "$ref": "#/definitions/runtime.RawExtension" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "revision": { - "description": "Revision indicates the revision of the state represented by Data.", - "type": "integer", - "format": "int64" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - ] - }, - "v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "required": [ - "diskName", - "diskURI" - ], - "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: mulitple 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" - } - } - }, - "v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ResourceQuota objects. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ResourceQuota" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ResourceQuotaList", - "version": "v1" - } - ] - }, - "v1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'.", - "type": "object", - "additionalProperties": { - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - ] - }, - "v1beta1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") 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.", - "required": [ - "cidr" - ], - "properties": { - "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"", - "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\" Except values will be rejected if they are outside the CIDR range", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta2.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "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 RC 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 RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" - }, - "maxUnavailable": { - "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 RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", - "required": [ - "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/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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeClaimList", - "version": "v1" - } - ] - }, - "v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", - "properties": { - "active": { - "description": "The number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "string", - "format": "date-time" - }, - "conditions": { - "description": "The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "type": "array", - "items": { - "$ref": "#/definitions/v1.JobCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "failed": { - "description": "The number of pods which reached phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "type": "string", - "format": "date-time" - }, - "succeeded": { - "description": "The number of pods which reached phase Succeeded.", - "type": "integer", - "format": "int32" - } - } - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "awsElasticBlockStore": { - "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", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFilePersistentVolumeSource" - }, - "capacity": { - "description": "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSPersistentVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" - }, - "claimRef": { - "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", - "$ref": "#/definitions/v1.ObjectReference" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" - }, - "flocker": { - "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", - "$ref": "#/definitions/v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "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", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" - }, - "hostPath": { - "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", - "$ref": "#/definitions/v1.HostPathVolumeSource" - }, - "iscsi": { - "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.", - "$ref": "#/definitions/v1.ISCSIVolumeSource" - }, - "local": { - "description": "Local represents directly-attached storage with node affinity", - "$ref": "#/definitions/v1.LocalVolumeSource" - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "nfs": { - "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "$ref": "#/definitions/v1.NFSVolumeSource" - }, - "persistentVolumeReclaimPolicy": { - "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", - "type": "string" - }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PortworxVolumeSource" - }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" - }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" - }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.ScaleIOPersistentVolumeSource" - }, - "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": { - "description": "StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md", - "$ref": "#/definitions/v1.StorageOSPersistentVolumeSource" - }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" - } - } - }, - "v1beta1.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSetCondition" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "v2beta1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.MetricSpec" - } - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "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.", - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference" - } - } - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - ] - }, - "v1beta2.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", - "required": [ - "template", - "serviceName" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "serviceName": { - "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for 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": { - "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.", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "updateStrategy": { - "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "$ref": "#/definitions/v1beta2.StatefulSetUpdateStrategy" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - } - }, - "v1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" - } - ] - }, - "v1alpha1.AdmissionHookClientConfig": { - "description": "AdmissionHookClientConfig contains the information to make a TLS connection with the webhook", - "required": [ - "service", - "caBundle" - ], - "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate webhook's server certificate. Required", - "type": "string", - "format": "byte" - }, - "service": { - "description": "Service is a reference to the service for this webhook. If there is only one port open for the service, that port will be used. If there are multiple ports open, port 443 will be used if it is open, otherwise it is an error. Required", - "$ref": "#/definitions/v1alpha1.ServiceReference" - } - } - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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.", - "$ref": "#/definitions/v1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - ] - }, - "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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "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.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" - } - ] - }, - "v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolume" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeList", - "version": "v1" - } - ] - }, - "v1.JobSpec": { - "description": "JobSpec describes how the job execution will look like.", - "required": [ - "template" - ], - "properties": { - "activeDeadlineSeconds": { - "description": "Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", - "type": "integer", - "format": "int64" - }, - "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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://git.k8s.io/community/contributors/design-proposals/selector-generation.md", - "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/", - "type": "integer", - "format": "int32" - }, - "selector": { - "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", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "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/", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v2alpha1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of CronJobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v2alpha1.CronJob" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v2alpha1" - } - ] - }, - "v1beta1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1beta1.ResourceAttributes" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.StatusCause" - } - }, - "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/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.", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "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" - } - } - }, - "v1beta2.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)", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", - "required": [ - "key" - ], - "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 it's key must be defined", - "type": "boolean" - } - } - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "capacity": { - "description": "Represents the actual resources of the underlying volume.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "conditions": { - "description": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaimCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - } - }, - "v2beta1.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the last time the condition transitioned from one status to another", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "extensions.v1beta1.Deployment": { - "description": "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/extensions.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - ] - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "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 it's keys must be defined", - "type": "boolean" - } - } - }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1beta1" - } - ] - }, - "v1alpha1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - ] - }, - "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": { - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", - "$ref": "#/definitions/v1.Capabilities" - }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "type": "boolean" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "$ref": "#/definitions/v1.SELinuxOptions" - } - } - }, - "v1beta1.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.", - "required": [ - "kind", - "name" - ], - "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" - } - } - }, - "v1beta1.JSON": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "type": "string", - "format": "byte" - } - } - }, - "v1beta1.ReplicaSet": { - "description": "DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet represents the configuration of a ReplicaSet.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "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/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.ReplicaSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.ReplicaSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - ] - }, - "v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "required": [ - "type", - "status" - ], - "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "required": [ - "allowed" - ], - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "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" - } - } - }, - "v1beta1.DaemonSet": { - "description": "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.DaemonSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - ] - }, - "v2alpha1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - } - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "type": "string", - "format": "date-time" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "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/v1.PersistentVolumeClaimSpec" - }, - "status": { - "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/v1.PersistentVolumeClaimStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - ] - }, - "v1.NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.Volume": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "required": [ - "name" - ], - "properties": { - "awsElasticBlockStore": { - "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", - "$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/v1.AzureFileVolumeSource" - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.CephFSVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/v1.CinderVolumeSource" - }, - "configMap": { - "description": "ConfigMap represents a configMap that should populate this volume", - "$ref": "#/definitions/v1.ConfigMapVolumeSource" - }, - "downwardAPI": { - "description": "DownwardAPI represents downward API about the pod that should populate this volume", - "$ref": "#/definitions/v1.DownwardAPIVolumeSource" - }, - "emptyDir": { - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "$ref": "#/definitions/v1.EmptyDirVolumeSource" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/v1.FlexVolumeSource" - }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "$ref": "#/definitions/v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "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", - "$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource" - }, - "gitRepo": { - "description": "GitRepo represents a git repository at a particular revision.", - "$ref": "#/definitions/v1.GitRepoVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/v1.GlusterfsVolumeSource" - }, - "hostPath": { - "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", - "$ref": "#/definitions/v1.HostPathVolumeSource" - }, - "iscsi": { - "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://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", - "$ref": "#/definitions/v1.ISCSIVolumeSource" - }, - "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": { - "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", - "$ref": "#/definitions/v1.NFSVolumeSource" - }, - "persistentVolumeClaim": { - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource" - }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.PortworxVolumeSource" - }, - "projected": { - "description": "Items for all in one resources secrets, configmaps, and downward API", - "$ref": "#/definitions/v1.ProjectedVolumeSource" - }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/v1.QuobyteVolumeSource" - }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/v1.RBDVolumeSource" - }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.ScaleIOVolumeSource" - }, - "secret": { - "description": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "$ref": "#/definitions/v1.SecretVolumeSource" - }, - "storageos": { - "description": "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/v1.StorageOSVolumeSource" - }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource" - } - } - }, - "v1beta2.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "required": [ - "name", - "mountPath" - ], - "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, MountPropagationHostToContainer is used. This field is alpha in 1.8 and can be reworked or removed in a future release.", - "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" - } - } - }, - "v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "required": [ - "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/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/", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Namespace" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NamespaceList", - "version": "v1" - } - ] - }, - "v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Endpoints" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EndpointsList", - "version": "v1" - } - ] - }, - "v1.Container": { - "description": "A single application container that you want to run within a pod.", - "required": [ - "name" - ], - "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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "type": "array", - "items": { - "type": "string" - } - }, - "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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "type": "array", - "items": { - "type": "string" - } - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvFromSource" - } - }, - "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": { - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - "$ref": "#/definitions/v1.Lifecycle" - }, - "livenessProbe": { - "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", - "$ref": "#/definitions/v1.Probe" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. 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": "array", - "items": { - "$ref": "#/definitions/v1.ContainerPort" - }, - "x-kubernetes-patch-merge-key": "containerPort", - "x-kubernetes-patch-strategy": "merge" - }, - "readinessProbe": { - "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", - "$ref": "#/definitions/v1.Probe" - }, - "resources": { - "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "$ref": "#/definitions/v1.ResourceRequirements" - }, - "securityContext": { - "description": "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md", - "$ref": "#/definitions/v1.SecurityContext" - }, - "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" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - }, - "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" - } - } - }, - "v1.LimitRangeSpec": { - "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "required": [ - "limits" - ], - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LimitRangeItem" - } - } - } - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "type": "integer", - "format": "int32" - }, - "details": { - "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.", - "$ref": "#/definitions/v1.StatusDetails" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - }, - "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/api-conventions.md#spec-and-status", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Status", - "version": "v1" - } - ] - }, - "v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/v1beta2.StatefulSetSpec" - }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/v1beta2.StatefulSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - ] - }, - "v1beta1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ReplicaSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "ReplicaSetList", - "version": "v1beta1" - } - ] - }, - "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": { - "description": "Details about a running container", - "$ref": "#/definitions/v1.ContainerStateRunning" - }, - "terminated": { - "description": "Details about a terminated container", - "$ref": "#/definitions/v1.ContainerStateTerminated" - }, - "waiting": { - "description": "Details about a waiting container", - "$ref": "#/definitions/v1.ContainerStateWaiting" - } - } - }, - "v1beta2.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "type": "string" - } - } - }, - "v1.NetworkPolicyPeer": { - "description": "NetworkPolicyPeer describes a peer to allow traffic from. Exactly one of its fields must be specified.", - "properties": { - "ipBlock": { - "description": "IPBlock defines policy on a particular IPBlock", - "$ref": "#/definitions/v1.IPBlock" - }, - "namespaceSelector": { - "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "podSelector": { - "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace.", - "$ref": "#/definitions/v1.LabelSelector" - } - } - }, - "v1beta1.CustomResourceDefinitionNames": { - "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", - "required": [ - "plural", - "kind" - ], - "properties": { - "kind": { - "description": "Kind is the serialized kind of the resource. It is normally CamelCase and singular.", - "type": "string" - }, - "listKind": { - "description": "ListKind is the serialized kind of the list for this resource. Defaults to List.", - "type": "string" - }, - "plural": { - "description": "Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.", - "type": "string" - }, - "shortNames": { - "description": "ShortNames are short names for the resource. It must be all lowercase.", - "type": "array", - "items": { - "type": "string" - } - }, - "singular": { - "description": "Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased ", - "type": "string" - } - } - }, - "v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "required": [ - "currentReplicas", - "desiredReplicas", - "currentMetrics", - "conditions" - ], - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerCondition" - } - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "type": "array", - "items": { - "$ref": "#/definitions/v2beta1.MetricStatus" - } - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "string", - "format": "date-time" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" - } - } - }, - "v1.SelfSubjectRulesReviewSpec": { - "properties": { - "namespace": { - "description": "Namespace to evaluate rules for. Required.", - "type": "string" - } - } - }, - "v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of LimitRange objects. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_limit_range.md", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LimitRange" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "LimitRangeList", - "version": "v1" - } - ] - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.WeightedPodAffinityTerm" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodAffinityTerm" - } - } - } - }, - "v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta2.DaemonSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta2.DaemonSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - ] - }, - "v1.NetworkPolicySpec": { - "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", - "required": [ - "podSelector" - ], - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicyEgressRule" - } - }, - "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)", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicyIngressRule" - } - }, - "podSelector": { - "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.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "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", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.APIGroupList": { - "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", - "required": [ - "groups" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "groups": { - "description": "groups is a list of APIGroup.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIGroupList", - "version": "v1" - } - ] - }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "$ref": "#/definitions/v1.ConfigMapEnvSource" - }, - "prefix": { - "description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "$ref": "#/definitions/v1.SecretEnvSource" - } - } - }, - "v1beta1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", - "required": [ - "template", - "serviceName" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "serviceName": { - "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for 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": { - "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.", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "updateStrategy": { - "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "$ref": "#/definitions/v1beta1.StatefulSetUpdateStrategy" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PersistentVolumeClaim" - } - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceSpec" - }, - "status": { - "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ServiceStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Service", - "version": "v1" - } - ] - }, - "v1beta1.CertificateSigningRequestList": { - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequest" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequestList", - "version": "v1beta1" - } - ] - }, - "v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", - "required": [ - "fieldPath" - ], - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - } - }, - "v1beta1.StatefulSet": { - "description": "DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/v1beta1.StatefulSetSpec" - }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/v1beta1.StatefulSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - ] - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LabelSelectorRequirement" - } - }, - "matchLabels": { - "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", - "additionalProperties": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "volumeID" - ], - "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).", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "v1beta1.PodSecurityPolicy": { - "description": "Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "spec defines the policy enforced.", - "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - ] - }, - "v1beta1.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" - } - } - }, - "v1.JobCondition": { - "description": "JobCondition describes current state of a job.", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1beta1.NetworkPolicyPeer": { - "properties": { - "ipBlock": { - "description": "IPBlock defines policy on a particular IPBlock", - "$ref": "#/definitions/v1beta1.IPBlock" - }, - "namespaceSelector": { - "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "podSelector": { - "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace.", - "$ref": "#/definitions/v1.LabelSelector" - } - } - }, - "v1.ReplicationControllerCondition": { - "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1alpha1.PodPresetList": { - "description": "PodPresetList is a list of PodPreset objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PodPreset" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "settings.k8s.io", - "kind": "PodPresetList", - "version": "v1alpha1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaSpec" - }, - "status": { - "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ResourceQuotaStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - ] - }, - "v1.LimitRangeItem": { - "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", - "properties": { - "default": { - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "defaultRequest": { - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "max": { - "description": "Max usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "maxLimitRequestRatio": { - "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", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "min": { - "description": "Min usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "type": { - "description": "Type of resource that this limit applies to.", - "type": "string" - } - } - }, - "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 to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "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 it's keys must be defined", - "type": "boolean" - } - } - }, - "v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") 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.", - "required": [ - "cidr" - ], - "properties": { - "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"", - "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\" Except values will be rejected if they are outside the CIDR range", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "array", - "items": { - "type": "string" - } - }, - "wwids": { - "description": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.NonResourceRule": { - "description": "NonResourceRule holds information that describes a rule for the non-resource", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.CustomResourceDefinitionStatus": { - "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", - "required": [ - "conditions", - "acceptedNames" - ], - "properties": { - "acceptedNames": { - "description": "AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec.", - "$ref": "#/definitions/v1beta1.CustomResourceDefinitionNames" - }, - "conditions": { - "description": "Conditions indicate state for particular aspects of a CustomResourceDefinition", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinitionCondition" - } - } - } - }, - "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).", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/v2beta1.ObjectMetricSource" - }, - "pods": { - "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.", - "$ref": "#/definitions/v2beta1.PodsMetricSource" - }, - "resource": { - "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.", - "$ref": "#/definitions/v2beta1.ResourceMetricSource" - }, - "type": { - "description": "type is the type of metric source. It should match one of the fields below.", - "type": "string" - } - } - }, - "v1beta1.APIServiceList": { - "description": "APIServiceList is a list of APIService objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.APIService" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - } - }, - "v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", - "type": "string", - "format": "date-time" - } - } - }, - "apps.v1beta1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "type": "string" - } - } - }, - "v1beta1.HostPortRange": { - "description": "Host Port Range 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.", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "type": "integer", - "format": "int32" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "type": "integer", - "format": "int32" - }, - "minReplicas": { - "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "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.", - "$ref": "#/definitions/v1.CrossVersionObjectReference" - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "v1alpha1.PriorityClassList": { - "description": "PriorityClassList is a collection of priority classes.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of PriorityClasses", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PriorityClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1alpha1" - } - ] - }, - "v1beta1.CustomResourceDefinitionSpec": { - "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", - "required": [ - "group", - "version", - "names", - "scope" - ], - "properties": { - "group": { - "description": "Group is the group this resource belongs in", - "type": "string" - }, - "names": { - "description": "Names are the names used to describe this custom resource", - "$ref": "#/definitions/v1beta1.CustomResourceDefinitionNames" - }, - "scope": { - "description": "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced", - "type": "string" - }, - "validation": { - "description": "Validation describes the validation methods for CustomResources This field is alpha-level and should only be sent to servers that enable the CustomResourceValidation feature.", - "$ref": "#/definitions/v1beta1.CustomResourceValidation" - }, - "version": { - "description": "Version is the version this resource belongs in", - "type": "string" - } - } - }, - "v1beta2.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/v1beta2.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "v1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1" - } - ] - }, - "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" - } - } - }, - "v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", - "properties": { - "configSource": { - "description": "If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field", - "$ref": "#/definitions/v1.NodeConfigSource" - }, - "externalID": { - "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", - "type": "string" - }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", - "type": "string" - }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", - "type": "string" - }, - "taints": { - "description": "If specified, the node's taints.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Taint" - } - }, - "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" - } - } - }, - "v1.VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "properties": { - "configMap": { - "description": "information about the configMap data to project", - "$ref": "#/definitions/v1.ConfigMapProjection" - }, - "downwardAPI": { - "description": "information about the downwardAPI data to project", - "$ref": "#/definitions/v1.DownwardAPIProjection" - }, - "secret": { - "description": "information about the secret data to project", - "$ref": "#/definitions/v1.SecretProjection" - } - } - }, - "v1beta2.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "type": "integer", - "format": "int64" - }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "type": "integer", - "format": "int32" - } - } - }, - "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.", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NodeSelectorTerm" - } - } - } - }, - "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).", - "required": [ - "weight", - "preference" - ], - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "$ref": "#/definitions/v1.NodeSelectorTerm" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.RunAsUserStrategyOptions": { - "description": "Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of uids that may be used.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - } - }, - "v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", - "required": [ - "key", - "path" - ], - "properties": { - "key": { - "description": "The key to project.", - "type": "string" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "v1.LocalVolumeSource": { - "description": "Local represents directly-attached storage with node affinity", - "required": [ - "path" - ], - "properties": { - "path": { - "description": "The full path to the volume on the node For alpha, this path must be a directory Once block as a source is supported, then this path can point to a block device", - "type": "string" - } - } - }, - "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.", - "required": [ - "kind", - "name" - ], - "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" - } - } - }, - "v2alpha1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "required": [ - "schedule", - "jobTemplate" - ], - "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Defaults to Allow.", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "jobTemplate": { - "description": "Specifies the job that will be created when executing a CronJob.", - "$ref": "#/definitions/v2alpha1.JobTemplateSpec" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - } - }, - "v1beta1.SelfSubjectRulesReviewSpec": { - "properties": { - "namespace": { - "description": "Namespace to evaluate rules for. Required.", - "type": "string" - } - } - }, - "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" - } - } - }, - "v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", - "required": [ - "containerPort" - ], - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "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 or TCP. Defaults to \"TCP\".", - "type": "string" - } - } - }, - "v1beta1.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 '#'.", - "required": [ - "paths" - ], - "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.HTTPIngressPath" - } - } - } - }, - "v1beta1.NetworkPolicySpec": { - "required": [ - "podSelector" - ], - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyEgressRule" - } - }, - "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 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).", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyIngressRule" - } - }, - "podSelector": { - "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.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "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", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta2.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "required": [ - "template" - ], - "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).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "updateStrategy": { - "description": "An update strategy to replace existing DaemonSet pods with new pods.", - "$ref": "#/definitions/v1beta2.DaemonSetUpdateStrategy" - } - } - }, - "v1alpha1.ExternalAdmissionHookConfigurationList": { - "description": "ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ExternalAdmissionHookConfiguration.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfigurationList", - "version": "v1alpha1" - } - ] - }, - "v1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - }, - "v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", - "properties": { - "limits": { - "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "requests": { - "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-compute-resources-container/", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - } - } - }, - "v1beta1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - }, - "v1.PersistentVolumeClaimCondition": { - "description": "PersistentVolumeClaimCondition contails details about state of pvc", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1beta2.ControllerRevisionList": { - "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ControllerRevisions", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.ControllerRevision" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevisionList", - "version": "v1beta2" - } - ] - }, - "v1beta1.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": { - "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - "$ref": "#/definitions/v1beta1.RollingUpdateStatefulSetStrategy" - }, - "type": { - "description": "Type indicates the type of the StatefulSetUpdateStrategy.", - "type": "string" - } - } - }, - "extensions.v1beta1.Scale": { - "description": "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/extensions.v1beta1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/extensions.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - ] - }, - "v1beta1.ExternalDocumentation": { - "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "resource.Quantity": { - "type": "string" - }, - "v1beta1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "type": "integer", - "format": "int64" - }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "type": "integer", - "format": "int32" - } - } - }, - "v1alpha1.InitializerConfiguration": { - "description": "InitializerConfiguration describes the configuration of initializers.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "initializers": { - "description": "Initializers is a list of resources and their default initializers Order-sensitive. When merging multiple InitializerConfigurations, we sort the initializers from different InitializerConfigurations by the name of the InitializerConfigurations; the order of the initializers from the same InitializerConfiguration is preserved.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Initializer" - }, - "x-kubernetes-patch-merge-key": "name", - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - ] - }, - "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", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" - } - ] - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LoadBalancerIngress" - } - } - } - }, - "v1.Initializer": { - "description": "Initializer is information about an initializer that has not yet completed.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "name of the process that is responsible for initializing this object.", - "type": "string" - } - } - }, - "v1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "string", - "format": "date-time" - }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" - } - } - }, - "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" - } - } - }, - "v1beta1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - } - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "type": "string", - "format": "date-time" - } - } - }, - "v1.ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "required": [ - "gateway", - "system", - "secretRef" - ], - "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" - }, - "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": { - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "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.", - "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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.CronJobSpec" - }, - "status": { - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta1.CronJobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - ] - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "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" - } - } - }, - "v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", - "required": [ - "port" - ], - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "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.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "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": { - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - "$ref": "#/definitions/v1.ObjectReference" - }, - "volumeName": { - "description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - } - }, - "v1beta1.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 the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t 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.", - "type": "string" - }, - "http": { - "$ref": "#/definitions/v1beta1.HTTPIngressRuleValue" - } - } - }, - "v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", - "required": [ - "pdID" - ], - "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" - } - } - }, - "v1beta2.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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.DeploymentCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", - "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" - ], - "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" - } - } - }, - "extensions.v1beta1.RollbackConfig": { - "description": "DEPRECATED.", - "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollback to the last revision.", - "type": "integer", - "format": "int64" - } - } - }, - "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" - } - } - }, - "apps.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1beta1.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/api-conventions.md#resources", - "type": "string" - }, - "deleteOptions": { - "description": "DeleteOptions may be provided", - "$ref": "#/definitions/v1.DeleteOptions" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "ObjectMeta describes the pod that is being evicted.", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "Eviction", - "version": "v1beta1" - } - ] - }, - "v1.NodeConfigSource": { - "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "configMapRef": { - "$ref": "#/definitions/v1.ObjectReference" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NodeConfigSource", - "version": "v1" - } - ] - }, - "v1beta1.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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "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/v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1beta1" - } - ] - }, - "v1beta1.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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "name", - "currentAverageValue" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "currentAverageValue": { - "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.", - "$ref": "#/definitions/resource.Quantity" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - } - }, - "v1alpha1.RoleList": { - "description": "RoleList is a collection of Roles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1alpha1" - } - ] - }, - "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": { - "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", - "$ref": "#/definitions/v1.Handler" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "$ref": "#/definitions/v1.Handler" - } - } - }, - "v1.Event": { - "description": "Event is a report of an event somewhere in the cluster.", - "required": [ - "metadata", - "involvedObject" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "count": { - "description": "The number of times this event has occurred.", - "type": "integer", - "format": "int32" - }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "type": "string", - "format": "date-time" - }, - "involvedObject": { - "description": "The object that this event is about.", - "$ref": "#/definitions/v1.ObjectReference" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", - "type": "string" - }, - "source": { - "description": "The component reporting this event. Should be a short machine understandable string.", - "$ref": "#/definitions/v1.EventSource" - }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Event", - "version": "v1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/v1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - ] - }, - "v1.NFSVolumeSource": { - "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "required": [ - "server", - "path" - ], - "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" - } - } - }, - "v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", - "required": [ - "type", - "object" - ], - "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.", - "$ref": "#/definitions/runtime.RawExtension" - }, - "type": { - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "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": "batch", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v2alpha1" - }, - { - "group": "certificates.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "federation", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "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": "v1alpha1" - }, - { - "group": "settings.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - } - ] - }, - "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.", - "required": [ - "pdName" - ], - "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", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", - "required": [ - "port" - ], - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HTTPHeader" - } - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "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.", - "$ref": "#/definitions/intstr.IntOrString" - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" - } - } - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "data": { - "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", - "additionalProperties": { - "type": "string", - "format": "byte" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "stringData": { - "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Secret", - "version": "v1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "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/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ReplicationControllerSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.ReplicationControllerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - ] - }, - "v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/v2beta1.ObjectMetricStatus" - }, - "pods": { - "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.", - "$ref": "#/definitions/v2beta1.PodsMetricStatus" - }, - "resource": { - "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.", - "$ref": "#/definitions/v2beta1.ResourceMetricStatus" - }, - "type": { - "description": "type is the type of metric source. It will match one of the fields below.", - "type": "string" - } - } - }, - "v1beta1.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)", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1beta1.NetworkPolicyIngressRule": { - "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches 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 on item, this rule allows traffic only if the traffic matches at least one item in the from list.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPort" - } - } - } - }, - "v1beta1.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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.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.", - "required": [ - "resourceRules", - "nonResourceRules", - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NonResourceRule" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ResourceRule" - } - } - } - }, - "v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "required": [ - "driver" - ], - "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": { - "description": "Optional: Extra command options if any.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "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.", - "$ref": "#/definitions/v1.LocalObjectReference" - } - } - }, - "v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/v1beta2.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/v1beta2.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - ] - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/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": { - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - "$ref": "#/definitions/v1.Preconditions" - }, - "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.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "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": "batch", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v2alpha1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "federation", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "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": "v1alpha1" - }, - { - "group": "settings.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - } - ] - }, - "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 on item, this rule allows traffic only if the traffic matches at least one item in the from list.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicyPeer" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicyPort" - } - } - } - }, - "v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", - "properties": { - "clusterIP": { - "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - "type": "string" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "externalName": { - "description": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name 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. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local.", - "type": "integer", - "format": "int32" - }, - "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/configure-cloud-provider-firewall/", - "type": "array", - "items": { - "type": "string" - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServicePort" - }, - "x-kubernetes-patch-merge-key": "port", - "x-kubernetes-patch-strategy": "merge" - }, - "publishNotReadyAddresses": { - "description": "publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. This field will replace the service.alpha.kubernetes.io/tolerate-unready-endpoints when that annotation is deprecated and all clients have been converted to use this field.", - "type": "boolean" - }, - "selector": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "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": { - "description": "sessionAffinityConfig contains the configurations of session affinity.", - "$ref": "#/definitions/v1.SessionAffinityConfig" - }, - "type": { - "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"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. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types", - "type": "string" - } - } - }, - "v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://git.k8s.io/community/contributors/design-proposals/namespaces.md#phases", - "type": "string" - } - } - }, - "v1beta2.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.ReplicaSetCondition" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "$ref": "#/definitions/v1.NodeAffinity" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "$ref": "#/definitions/v1.PodAffinity" - }, - "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)).", - "$ref": "#/definitions/v1.PodAntiAffinity" - } - } - }, - "v1alpha1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1alpha1" - } - ] - }, - "v1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "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": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1.UserInfo" - } - } - }, - "v1alpha1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "$ref": "#/definitions/v1.ConfigMapKeySelector" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "resourceFieldRef": { - "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.", - "$ref": "#/definitions/v1.ResourceFieldSelector" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "$ref": "#/definitions/v1.SecretKeySelector" - } - } - }, - "v1beta1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "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": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/v1beta1.UserInfo" - } - } - }, - "v1beta1.APIServiceStatus": { - "description": "APIServiceStatus contains derived information about an API server", - "properties": { - "conditions": { - "description": "Current service state of apiService.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.APIServiceCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - } - } - }, - "v1.ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "properties": { - "annotations": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "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": { - "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/api-conventions.md#metadata", - "type": "string", - "format": "date-time" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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 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/api-conventions.md#metadata", - "type": "string", - "format": "date-time" - }, - "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.", - "type": "array", - "items": { - "type": "string" - }, - "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/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.", - "type": "integer", - "format": "int64" - }, - "initializers": { - "description": "An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects.\n\nWhen an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user.", - "$ref": "#/definitions/v1.Initializers" - }, - "labels": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "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 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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.OwnerReference" - }, - "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/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", - "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" - } - } - }, - "v1beta1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.StatefulSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSetList", - "version": "v1beta1" - } - ] - }, - "v1alpha1.Initializer": { - "description": "Initializer describes the name and the failure policy of an initializer, and what resources it applies to.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where \"alwayspullimages\" is the name of the webhook, and kubernetes.io is the name of the organization. Required", - "type": "string" - }, - "rules": { - "description": "Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule. Rule.Resources must not include subresources.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Rule" - } - } - } - }, - "apps.v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/apps.v1beta1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/apps.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - ] - }, - "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 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.", - "type": "string" - }, - "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/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "selfLink is a URL representing this object. Populated by the system. Read-only.", - "type": "string" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "status is the current information about the autoscaler.", - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - ] - }, - "v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ComponentCondition" - }, - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - ] - }, - "v1.Taint": { - "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", - "required": [ - "key", - "effect" - ], - "properties": { - "effect": { - "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Required. The taint key to be applied to a node.", - "type": "string" - }, - "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", - "type": "string", - "format": "date-time" - }, - "value": { - "description": "Required. The taint value corresponding to the taint key.", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1" - } - ] - }, - "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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1beta1.CertificateSigningRequest": { - "description": "Describes a certificate signing 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "The certificate request itself and any additional information.", - "$ref": "#/definitions/v1beta1.CertificateSigningRequestSpec" - }, - "status": { - "description": "Derived information about the request.", - "$ref": "#/definitions/v1beta1.CertificateSigningRequestStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - ] - }, - "v1beta1.CustomResourceDefinitionCondition": { - "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "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).", - "required": [ - "metricName", - "currentAverageValue" - ], - "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "$ref": "#/definitions/resource.Quantity" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - } - } - }, - "v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", - "required": [ - "Port" - ], - "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.NetworkPolicyPort": { - "properties": { - "port": { - "description": "If specified, 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.", - "$ref": "#/definitions/intstr.IntOrString" - }, - "protocol": { - "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", - "type": "string" - } - } - }, - "v2beta1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "required": [ - "target", - "metricName", - "targetValue" - ], - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference" - }, - "targetValue": { - "description": "targetValue is the target value of the metric (as a quantity).", - "$ref": "#/definitions/resource.Quantity" - } - } - }, - "v1beta1.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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Pod", - "version": "v1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "template": { - "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" - }, - "status": { - "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "Job", - "version": "v1" - } - ] - }, - "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).", - "required": [ - "claimName" - ], - "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" - } - } - }, - "v1.ServerAddressByClientCIDR": { - "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "required": [ - "clientCIDR", - "serverAddress" - ], - "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" - } - } - }, - "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.", - "required": [ - "targetPortal", - "iqn", - "lun" - ], - "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": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.", - "type": "string" - }, - "lun": { - "description": "iSCSI target lun number.", - "type": "integer", - "format": "int32" - }, - "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).", - "type": "array", - "items": { - "type": "string" - } - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "description": "CHAP secret for iSCSI target and initiator authentication", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "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" - } - } - }, - "v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec describes how the user wants the resources to appear", - "$ref": "#/definitions/v1beta1.CustomResourceDefinitionSpec" - }, - "status": { - "description": "Status indicates the actual state of the CustomResourceDefinition", - "$ref": "#/definitions/v1beta1.CustomResourceDefinitionStatus" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "current information about the autoscaler.", - "$ref": "#/definitions/v1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - ] - }, - "v1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/v1.StorageClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1" - } - ] - }, - "v1beta1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "v1alpha1.PodPresetSpec": { - "description": "PodPresetSpec is a description of a pod preset.", - "properties": { - "env": { - "description": "Env defines the collection of EnvVar to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvVar" - } - }, - "envFrom": { - "description": "EnvFrom defines the collection of EnvFromSource to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EnvFromSource" - } - }, - "selector": { - "description": "Selector is a label query over a set of resources, in this case pods. Required.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "volumeMounts": { - "description": "VolumeMounts defines the collection of VolumeMount to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.VolumeMount" - } - }, - "volumes": { - "description": "Volumes defines the collection of Volume to inject into the pod.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Volume" - } - } - } - }, - "v1.APIGroup": { - "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", - "required": [ - "name", - "versions", - "serverAddressByClientCIDRs" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name is the name of the group.", - "type": "string" - }, - "preferredVersion": { - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the versions supported in this group.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.GroupVersionForDiscovery" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIGroup", - "version": "v1" - } - ] - }, - "v1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - ] - }, - "v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", - "properties": { - "hard": { - "description": "Hard is the set of enforced hard limits for each named resource. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - }, - "used": { - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - } - } - } - }, - "v1beta1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - ] - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1alpha1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - ] - }, - "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" - } - } - }, - "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.)", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "description": "Raw is the underlying serialization of this object.", - "type": "string", - "format": "byte" - } - } - }, - "v1beta1.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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/v1beta1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - ] - }, - "v1beta2.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.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "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", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "Groups is the groups you're testing for.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/v1.ResourceAttributes" - }, - "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" - } - } - }, - "v1.ServiceList": { - "description": "ServiceList holds a list of services.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of services", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Service" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceList", - "version": "v1" - } - ] - }, - "v1beta1.CertificateSigningRequestCondition": { - "required": [ - "type" - ], - "properties": { - "lastUpdateTime": { - "description": "timestamp for the last update to this condition", - "type": "string", - "format": "date-time" - }, - "message": { - "description": "human readable message with details about the request state", - "type": "string" - }, - "reason": { - "description": "brief reason for the request state", - "type": "string" - }, - "type": { - "description": "request approval state, currently Approved or Denied.", - "type": "string" - } - } - }, - "v1beta1.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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.TokenReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1beta1.TokenReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1beta1" - } - ] - }, - "v1.RoleList": { - "description": "RoleList is a collection of Roles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.LimitRangeSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - ] - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - } - }, - "v1beta1.ControllerRevision": { - "description": "DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. 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.", - "required": [ - "revision" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data is the serialized representation of the state.", - "$ref": "#/definitions/runtime.RawExtension" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "revision": { - "description": "Revision indicates the revision of the state represented by Data.", - "type": "integer", - "format": "int64" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - ] - }, - "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://git.k8s.io/community/contributors/design-proposals/namespaces.md#finalizers", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.ServiceAccountList": { - "description": "ServiceAccountList is a list of ServiceAccount objects", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServiceAccount" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceAccountList", - "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.", - "required": [ - "monitors" - ], - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "v1beta2.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", - "properties": { - "maxUnavailable": { - "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. 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.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "v1beta2.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": { - "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - "$ref": "#/definitions/v1beta2.RollingUpdateStatefulSetStrategy" - }, - "type": { - "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", - "type": "string" - } - } - }, - "v1beta1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of CronJobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CronJob" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v1beta1" - } - ] - }, - "v1.EventList": { - "description": "EventList is a list of events.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of events", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Event" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EventList", - "version": "v1" - } - ] - }, - "v1beta1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", - "properties": { - "backend": { - "description": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - "$ref": "#/definitions/v1beta1.IngressBackend" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IngressRule" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IngressTLS" - } - } - } - }, - "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.", - "required": [ - "versions", - "serverAddressByClientCIDRs" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the api versions that are available.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIVersions", - "version": "v1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeSpec" - }, - "status": { - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NodeStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Node", - "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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1.TokenReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/v1.TokenReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" - } - ] - }, - "v1.AzureFilePersistentVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "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" - } - } - }, - "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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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 This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. 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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicyPort" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicyPeer" - } - } - } - }, - "v1.HostPathVolumeSource": { - "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", - "required": [ - "path" - ], - "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" - } - } - }, - "v1beta1.NonResourceRule": { - "description": "NonResourceRule holds information that describes a rule for the non-resource", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/v1.NetworkPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - ] - }, - "v1beta1.APIServiceCondition": { - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "extensions.v1beta1.DeploymentRollback": { - "description": "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/extensions.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - ] - }, - "v1beta1.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "required": [ - "template" - ], - "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).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/v1.PodTemplateSpec" - }, - "templateGeneration": { - "description": "DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.", - "type": "integer", - "format": "int64" - }, - "updateStrategy": { - "description": "An update strategy to replace existing DaemonSet pods with new pods.", - "$ref": "#/definitions/v1beta1.DaemonSetUpdateStrategy" - } - } - }, - "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 ]", - "required": [ - "subsets" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointSubset" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - ] - }, - "v1.SessionAffinityConfig": { - "description": "SessionAffinityConfig represents the configurations of session affinity.", - "properties": { - "clientIP": { - "description": "clientIP contains the configurations of Client IP based session affinity.", - "$ref": "#/definitions/v1.ClientIPConfig" - } - } - }, - "v1.PortworxVolumeSource": { - "description": "PortworxVolumeSource represents a Portworx volume resource.", - "required": [ - "volumeID" - ], - "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" - } - } - }, - "v1.JobList": { - "description": "JobList is a collection of jobs.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of Jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Job" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "JobList", - "version": "v1" - } - ] - }, - "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.", - "required": [ - "groupVersion", - "resources" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.APIResource" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIResourceList", - "version": "v1" - } - ] - }, - "v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pod templates", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodTemplate" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodTemplateList", - "version": "v1" - } - ] - }, - "v1beta1.AllowedHostPath": { - "description": "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": "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" - } - } - }, - "v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "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/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" - } - } - }, - "v1beta1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1beta1" - } - ] - }, - "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.", - "required": [ - "repository" - ], - "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" - } - } - }, - "v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", - "required": [ - "name" - ], - "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 previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "$ref": "#/definitions/v1.EnvVarSource" - } - } - }, - "v1beta1.CertificateSigningRequestStatus": { - "properties": { - "certificate": { - "description": "If request was approved, the controller will place the issued certificate here.", - "type": "string", - "format": "byte" - }, - "conditions": { - "description": "Conditions applied to the request, such as approval or denial.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CertificateSigningRequestCondition" - } - } - } - }, - "v1.ComponentCondition": { - "description": "Information about the condition of a component.", - "required": [ - "type", - "status" - ], - "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" - } - } - }, - "v1beta1.RollingUpdateStatefulSetStrategy": { - "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "properties": { - "partition": { - "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned.", - "type": "integer", - "format": "int32" - } - } - }, - "extensions.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/extensions.v1beta1.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "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.", - "required": [ - "resourceRules", - "nonResourceRules", - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NonResourceRule" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ResourceRule" - } - } - } - }, - "v1beta1.JSONSchemaPropsOrBool": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "required": [ - "Allows", - "Schema" - ], - "properties": { - "Allows": { - "type": "boolean" - }, - "Schema": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - } - }, - "v1beta1.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" - } - } - }, - "v1beta1.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", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/v1beta1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1beta1" - } - ] - }, - "v1beta1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "A list of daemon sets.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.DaemonSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DaemonSetList", - "version": "v1beta1" - } - ] - }, - "v1beta1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "required": [ - "replicas" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "replicas is the number of Pods created by the StatefulSet controller.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPort" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.NetworkPolicyPeer" - } - } - } - }, - "v2beta1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "required": [ - "target", - "metricName", - "currentValue" - ], - "properties": { - "currentValue": { - "description": "currentValue is the current value of the metric (as a quantity).", - "$ref": "#/definitions/resource.Quantity" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference" - } - } - }, - "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.", - "required": [ - "target" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "target": { - "description": "The target object that you want to bind to the standard object.", - "$ref": "#/definitions/v1.ObjectReference" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Binding", - "version": "v1" - } - ] - }, - "v1alpha1.ExternalAdmissionHookConfiguration": { - "description": "ExternalAdmissionHookConfiguration describes the configuration of initializers.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "externalAdmissionHooks": { - "description": "ExternalAdmissionHooks is a list of external admission webhooks and the affected resources and operations.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ExternalAdmissionHook" - }, - "x-kubernetes-patch-merge-key": "name", - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - ] - }, - "v1beta2.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - ] - }, - "v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", - "required": [ - "volumePath" - ], - "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" - } - } - }, - "v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of nodes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NodeList", - "version": "v1" - } - ] - }, - "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": { - "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", - "$ref": "#/definitions/resource.Quantity" - } - } - }, - "v1.NetworkPolicyPort": { - "description": "NetworkPolicyPort describes a port to allow traffic on", - "properties": { - "port": { - "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.", - "$ref": "#/definitions/intstr.IntOrString" - }, - "protocol": { - "description": "The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", - "type": "string" - } - } - }, - "v1beta1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "required": [ - "allowed" - ], - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "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" - } - } - }, - "v1.Initializers": { - "description": "Initializers tracks the progress of initialization.", - "required": [ - "pending" - ], - "properties": { - "pending": { - "description": "Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Initializer" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "result": { - "description": "If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion.", - "$ref": "#/definitions/v1.Status" - } - } - }, - "v1beta1.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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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.", - "$ref": "#/definitions/v1beta1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - ] - }, - "v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", - "required": [ - "exitCode" - ], - "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" - }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "finishedAt": { - "description": "Time at which the container last terminated", - "type": "string", - "format": "date-time" - }, - "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", - "type": "integer", - "format": "int32" - }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "type": "string", - "format": "date-time" - } - } - }, - "v1beta1.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.", - "type": "array", - "items": { - "type": "string" - } - }, - "secretName": { - "description": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL 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" - } - } - }, - "v1beta1.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.", - "required": [ - "provisioner" - ], - "properties": { - "allowVolumeExpansion": { - "description": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "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" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - ] - }, - "v1.PodStatus": { - "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", - "properties": { - "conditions": { - "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PodCondition" - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerStatus" - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ContainerStatus" - } - }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", - "type": "string" - }, - "phase": { - "description": "Current condition of the pod. More 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" - }, - "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://github.com/kubernetes/kubernetes/blob/master/docs/design/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": { - "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": "string", - "format": "date-time" - } - } - }, - "v1beta2.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "required": [ - "replicas" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "replicas is the number of Pods created by the StatefulSet controller.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "properties": { - "maxUnavailable": { - "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\".", - "$ref": "#/definitions/intstr.IntOrString" - }, - "minAvailable": { - "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%\".", - "$ref": "#/definitions/intstr.IntOrString" - }, - "selector": { - "description": "Label query over pods whose evictions are managed by the disruption budget.", - "$ref": "#/definitions/v1.LabelSelector" - } - } - }, - "v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", - "required": [ - "name", - "devicePath" - ], - "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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "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.PersistentVolumeSpec" - }, - "status": { - "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.PersistentVolumeStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - ] - }, - "apps.v1beta1.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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/apps.v1beta1.DeploymentCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.NetworkPolicyList": { - "description": "NetworkPolicyList is a list of NetworkPolicy objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "networking.k8s.io", - "kind": "NetworkPolicyList", - "version": "v1" - } - ] - }, - "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).", - "type": "integer", - "format": "int32" - } - } - }, - "v1beta1.SELinuxStrategyOptions": { - "description": "SELinux Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "rule": { - "description": "type is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md", - "$ref": "#/definitions/v1.SELinuxOptions" - } - } - }, - "v1alpha1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1alpha1" - } - ] - }, - "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" - } - } - }, - "v1beta1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "required": [ - "schedule", - "jobTemplate" - ], - "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Defaults to Allow.", - "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.", - "type": "integer", - "format": "int32" - }, - "jobTemplate": { - "description": "Specifies the job that will be created when executing a CronJob.", - "$ref": "#/definitions/v1beta1.JobTemplateSpec" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - } - }, - "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" - } - } - }, - "v1alpha1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", - "required": [ - "namespace", - "name" - ], - "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" - } - } - }, - "v1beta2.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "A list of daemon sets.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.DaemonSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSetList", - "version": "v1beta2" - } - ] - }, - "v1beta2.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.StatefulSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSetList", - "version": "v1beta2" - } - ] - }, - "extensions.v1beta1.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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/extensions.v1beta1.DeploymentCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "required": [ - "path" - ], - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", - "$ref": "#/definitions/v1.ObjectFieldSelector" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/v1.ResourceFieldSelector" - } - } - }, - "v1alpha1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1alpha1" - } - ] - }, - "v1.ContainerImage": { - "description": "Describe a container image", - "required": [ - "names" - ], - "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", - "type": "array", - "items": { - "type": "string" - } - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "type": "integer", - "format": "int64" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceSpec" - }, - "status": { - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.NamespaceStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Namespace", - "version": "v1" - } - ] - }, - "v1beta1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - }, - "v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], - "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/getting-system-uuid.html", - "type": "string" - } - } - }, - "v1beta1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1beta1" - } - ] - }, - "v1.PodCondition": { - "description": "PodCondition contains details for the current condition of this pod.", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "type": "string", - "format": "date-time" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "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. Currently only Ready. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "type": "string" - } - } - }, - "v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ConfigMaps.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ConfigMap" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ConfigMapList", - "version": "v1" - } - ] - }, - "v1beta2.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentList", - "version": "v1beta2" - } - ] - }, - "v1.Handler": { - "description": "Handler defines a specific action that should be taken", - "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/v1.ExecAction" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/v1.HTTPGetAction" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/v1.TCPSocketAction" - } - } - }, - "v1beta1.ControllerRevisionList": { - "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ControllerRevisions", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.ControllerRevision" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevisionList", - "version": "v1beta1" - } - ] - }, - "v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "list of horizontal pod autoscaler objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v1" - } - ] - }, - "v1beta1.CertificateSigningRequestSpec": { - "description": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", - "required": [ - "request" - ], - "properties": { - "extra": { - "description": "Extra information about the requesting user. See user.Info interface for details.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "Group information about the requesting user. See user.Info interface for details.", - "type": "array", - "items": { - "type": "string" - } - }, - "request": { - "description": "Base64-encoded PKCS#10 CSR data", - "type": "string", - "format": "byte" - }, - "uid": { - "description": "UID information about the requesting user. See user.Info interface for details.", - "type": "string" - }, - "usages": { - "description": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12", - "type": "array", - "items": { - "type": "string" - } - }, - "username": { - "description": "Information about the requesting user. See user.Info interface for details.", - "type": "string" - } - } - }, - "apps.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "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 RC 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 RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" - }, - "maxUnavailable": { - "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 RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.PreferredSchedulingTerm" - } - }, - "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 an update), the system may or may not try to eventually evict the pod from its node.", - "$ref": "#/definitions/v1.NodeSelector" - } - } - }, - "v1beta1.PodSecurityPolicyList": { - "description": "Pod Security Policy List is a list of PodSecurityPolicy objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "PodSecurityPolicyList", - "version": "v1beta1" - } - ] - }, - "v1alpha1.PodPreset": { - "description": "PodPreset is a policy resource that defines additional runtime requirements for a 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "$ref": "#/definitions/v1alpha1.PodPresetSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - ] - }, - "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 to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.KeyToPath" - } - }, - "optional": { - "description": "Specify whether the Secret or it's 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" - } - } - }, - "v1beta1.CustomResourceDefinitionList": { - "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items individual CustomResourceDefinitions", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.CustomResourceDefinition" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta" - } - } - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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" - } - } - }, - "apps.v1beta1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", - "required": [ - "ip" - ], - "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": { - "description": "Reference to object providing the endpoint.", - "$ref": "#/definitions/v1.ObjectReference" - } - } - }, - "intstr.IntOrString": { - "type": "string", - "format": "int-or-string" - }, - "v1beta1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.StorageClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1beta1" - } - ] - }, - "v1beta2.ReplicaSet": { - "description": "ReplicaSet represents the configuration of a ReplicaSet.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "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/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta2.ReplicaSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1beta2.ReplicaSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - ] - }, - "extensions.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "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. By default, a value of 1 is used. Example: when this is set to 30%, the new RC 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 RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" - }, - "maxUnavailable": { - "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. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" - } - } - }, - "v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "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" - } - } - }, - "v1.PodTemplateSpec": { - "description": "PodTemplateSpec describes the data a pod should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.PodSpec" - } - } - }, - "v1.PodSpec": { - "description": "PodSpec is a description of a pod.", - "required": [ - "containers" - ], - "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.", - "type": "integer", - "format": "int64" - }, - "affinity": { - "description": "If specified, the pod's scheduling constraints", - "$ref": "#/definitions/v1.Affinity" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "type": "boolean" - }, - "containers": { - "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Container" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "dnsPolicy": { - "description": "Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", - "type": "string" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.HostAlias" - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "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, or Liveness 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/", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Container" - }, - "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": { - "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", - "additionalProperties": { - "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.", - "type": "integer", - "format": "int32" - }, - "priorityClassName": { - "description": "If specified, indicates the pod's priority. \"SYSTEM\" is a special keyword which indicates 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" - }, - "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" - }, - "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": { - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - "$ref": "#/definitions/v1.PodSecurityContext" - }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "type": "string" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "type": "string" - }, - "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 delete immediately. 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.", - "type": "integer", - "format": "int64" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Toleration" - } - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", - "type": "array", - "items": { - "$ref": "#/definitions/v1.Volume" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge,retainKeys" - } - } - }, - "v1beta2.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta2.ReplicaSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ReplicaSetList", - "version": "v1beta2" - } - ] - }, - "v1beta1.APIServiceSpec": { - "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", - "required": [ - "service", - "caBundle", - "groupPriorityMinimum", - "versionPriority" - ], - "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.", - "type": "string", - "format": "byte" - }, - "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 prefered 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", - "type": "integer", - "format": "int32" - }, - "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": { - "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.", - "$ref": "#/definitions/v1beta1.ServiceReference" - }, - "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). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) Since it's inside of a group, the number can be small, probably in the 10s.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - } - }, - "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/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/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" - } - } - }, - "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.", - "required": [ - "name" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "targetAverageValue": { - "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.", - "$ref": "#/definitions/resource.Quantity" - } - } - }, - "v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", - "required": [ - "resource" - ], - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "$ref": "#/definitions/resource.Quantity" - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointAddress" - } - }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "type": "array", - "items": { - "$ref": "#/definitions/v1.EndpointPort" - } - } - } - }, - "apps.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "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)", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "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 2.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/apps.v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/apps.v1beta1.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1beta1.JSONSchemaPropsOrStringArray": { - "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", - "required": [ - "Schema", - "Property" - ], - "properties": { - "Property": { - "type": "array", - "items": { - "type": "string" - } - }, - "Schema": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - } - }, - "v1.ScaleIOPersistentVolumeSource": { - "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", - "required": [ - "gateway", - "system", - "secretRef" - ], - "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" - }, - "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": { - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "$ref": "#/definitions/v1.SecretReference" - }, - "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.", - "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" - } - } - }, - "v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], - "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/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" - } - } - }, - "extensions.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/extensions.v1beta1.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DeploymentList", - "version": "v1beta1" - } - ] - }, - "v1beta1.PodSecurityPolicySpec": { - "description": "Pod Security Policy Spec defines the policy enforced.", - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "allowedHostPaths": { - "description": "is a white list of allowed host paths. Empty indicates that all host paths may be used.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.AllowedHostPath" - } - }, - "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 capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", - "type": "array", - "items": { - "type": "string" - } - }, - "defaultAllowPrivilegeEscalation": { - "description": "DefaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "type": "boolean" - }, - "fsGroup": { - "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", - "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.HostPortRange" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "runAsUser": { - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", - "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions" - }, - "seLinux": { - "description": "seLinux is the strategy that will dictate the allowable labels that may be set.", - "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions" - }, - "supplementalGroups": { - "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", - "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions" - }, - "volumes": { - "description": "volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1alpha1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - ] - }, - "v1.RBDVolumeSource": { - "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", - "required": [ - "monitors", - "image" - ], - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "$ref": "#/definitions/v1.LocalObjectReference" - }, - "user": { - "description": "The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - } - }, - "extensions.v1beta1.ScaleStatus": { - "description": "represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "type": "string" - } - } - }, - "v1beta2.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "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)", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/v1beta2.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/v1beta1.NetworkPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - ] - }, - "v1beta1.IngressList": { - "description": "IngressList is a collection of Ingress.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Ingress.", - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.Ingress" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "IngressList", - "version": "v1beta1" - } - ] - }, - "apps.v1beta1.Deployment": { - "description": "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/apps.v1beta1.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/apps.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - ] - }, - "v1.GlusterfsVolumeSource": { - "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "required": [ - "endpoints", - "path" - ], - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - } - }, - "v1beta1.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/v1beta1.JSONSchemaPropsOrBool" - }, - "additionalProperties": { - "$ref": "#/definitions/v1beta1.JSONSchemaPropsOrBool" - }, - "allOf": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "anyOf": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "default": { - "$ref": "#/definitions/v1beta1.JSON" - }, - "definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/v1beta1.JSONSchemaPropsOrStringArray" - } - }, - "description": { - "type": "string" - }, - "enum": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.JSON" - } - }, - "example": { - "$ref": "#/definitions/v1beta1.JSON" - }, - "exclusiveMaximum": { - "type": "boolean" - }, - "exclusiveMinimum": { - "type": "boolean" - }, - "externalDocs": { - "$ref": "#/definitions/v1beta1.ExternalDocumentation" - }, - "format": { - "type": "string" - }, - "id": { - "type": "string" - }, - "items": { - "$ref": "#/definitions/v1beta1.JSONSchemaPropsOrArray" - }, - "maxItems": { - "type": "integer", - "format": "int64" - }, - "maxLength": { - "type": "integer", - "format": "int64" - }, - "maxProperties": { - "type": "integer", - "format": "int64" - }, - "maximum": { - "type": "number", - "format": "double" - }, - "minItems": { - "type": "integer", - "format": "int64" - }, - "minLength": { - "type": "integer", - "format": "int64" - }, - "minProperties": { - "type": "integer", - "format": "int64" - }, - "minimum": { - "type": "number", - "format": "double" - }, - "multipleOf": { - "type": "number", - "format": "double" - }, - "not": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - }, - "oneOf": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "pattern": { - "type": "string" - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "required": { - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "uniqueItems": { - "type": "boolean" - } - } - }, - "v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", - "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" - ], - "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": { - "description": "Details about the container's last termination condition.", - "$ref": "#/definitions/v1.ContainerState" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "state": { - "description": "Details about the container's current condition.", - "$ref": "#/definitions/v1.ContainerState" - } - } - }, - "v1beta1.JSONSchemaPropsOrArray": { - "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", - "required": [ - "Schema", - "JSONSchemas" - ], - "properties": { - "JSONSchemas": { - "type": "array", - "items": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - }, - "Schema": { - "$ref": "#/definitions/v1beta1.JSONSchemaProps" - } - } - }, - "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/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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.LocalObjectReference" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/v1.ObjectReference" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - ] - }, - "v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "description": "The header field name", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - } - }, - "v1alpha1.InitializerConfigurationList": { - "description": "InitializerConfigurationList is a list of InitializerConfiguration.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of InitializerConfiguration.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.InitializerConfiguration" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfigurationList", - "version": "v1alpha1" - } - ] - }, - "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" - } - } - }, - "v1beta1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v1.JobSpec" - } - } - }, - "v2alpha1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobSpec" - }, - "status": { - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/v2alpha1.CronJobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - ] - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/v1.ObjectMeta" - }, - "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.", - "$ref": "#/definitions/v1alpha1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/v1alpha1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - ] - }, - "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 value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "Items is a list of downward API volume file", - "type": "array", - "items": { - "$ref": "#/definitions/v1.DownwardAPIVolumeFile" - } - } - } - }, - "v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "description": "Endpoint on which Kubelet is listening.", - "$ref": "#/definitions/v1.DaemonEndpoint" - } - } - }, - "v1beta1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer.", - "$ref": "#/definitions/v1.LoadBalancerStatus" - } - } - }, - "v1.NodeAddress": { - "description": "NodeAddress contains information for the node's address.", - "required": [ - "type", - "address" - ], - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "type": "string" - } - } - }, - "v1.QuobyteVolumeSource": { - "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", - "required": [ - "registry", - "volume" - ], - "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" - }, - "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" - } - } - }, - "v1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource.", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "v1.WeightedPodAffinityTerm": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "$ref": "#/definitions/v1.PodAffinityTerm" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - "type": "integer", - "format": "int32" - } - } - }, - "v1alpha1.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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "operations": { - "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "properties": { - "uid": { - "description": "Specifies the target UID.", - "type": "string" - } - } - }, - "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.", - "required": [ - "metricName", - "targetAverageValue" - ], - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "$ref": "#/definitions/resource.Quantity" - } - } - }, - "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)", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "template": { - "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", - "$ref": "#/definitions/v1.PodTemplateSpec" - } - } - }, - "v1.APIResource": { - "description": "APIResource specifies the name of a resource and whether it is namespaced.", - "required": [ - "name", - "singularName", - "namespaced", - "kind", - "verbs" - ], - "properties": { - "categories": { - "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - }, - "v1beta1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - } - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "$ref": "#/definitions/v1.SELinuxOptions" - }, - "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.", - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - } - }, - "v1beta1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1beta1" - } - ] - }, - "v1beta2.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "extensions.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "type": "string", - "format": "date-time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "type": "string", - "format": "date-time" - }, - "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" - } - } - } - }, - "securityDefinitions": { - "BearerToken": { - "description": "Bearer Token authentication", - "type": "apiKey", - "name": "authorization", - "in": "header" - } - }, - "security": [ - { - "BearerToken": [] - } - ] -} \ No newline at end of file diff --git a/src/generated/swagger.json.unprocessed b/src/generated/swagger.json.unprocessed deleted file mode 100644 index 6dddab14d..000000000 --- a/src/generated/swagger.json.unprocessed +++ /dev/null @@ -1,73791 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Kubernetes", - "version": "v1.8.4" - }, - "paths": { - "/api/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core" - ], - "operationId": "getCoreAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "getCoreV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/api/v1/componentstatuses": { - "get": { - "description": "list objects of kind ComponentStatus", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1ComponentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatusList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/componentstatuses/{name}": { - "get": { - "description": "read the specified ComponentStatus", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1ComponentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ComponentStatus", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ComponentStatus", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/configmaps": { - "get": { - "description": "list or watch objects of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1ConfigMapForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/endpoints": { - "get": { - "description": "list or watch objects of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1EndpointsForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/events": { - "get": { - "description": "list or watch objects of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1EventForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/limitranges": { - "get": { - "description": "list or watch objects of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1LimitRangeForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/namespaces": { - "get": { - "description": "list or watch objects of kind Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1Namespace", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "post": { - "description": "create a Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1Namespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/bindings": { - "post": { - "description": "create a Binding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/configmaps": { - "get": { - "description": "list or watch objects of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "post": { - "description": "create a ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/configmaps/{name}": { - "get": { - "description": "read the specified ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedConfigMap", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "delete": { - "description": "delete a ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ConfigMap", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedConfigMap", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/endpoints": { - "get": { - "description": "list or watch objects of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "post": { - "description": "create Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/endpoints/{name}": { - "get": { - "description": "read the specified Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedEndpoints", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "delete": { - "description": "delete Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Endpoints", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedEndpoints", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/events": { - "get": { - "description": "list or watch objects of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "post": { - "description": "create an Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/events/{name}": { - "get": { - "description": "read the specified Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedEvent", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "delete": { - "description": "delete an Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Event", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedEvent", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Event", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/limitranges": { - "get": { - "description": "list or watch objects of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "post": { - "description": "create a LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/limitranges/{name}": { - "get": { - "description": "read the specified LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedLimitRange", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "put": { - "description": "replace the specified LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "delete": { - "description": "delete a LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified LimitRange", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedLimitRange", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the LimitRange", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "description": "list or watch objects of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "post": { - "description": "create a PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "get": { - "description": "read the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "put": { - "description": "replace the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "delete": { - "description": "delete a PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified PersistentVolumeClaim", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedPersistentVolumeClaim", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status": { - "get": { - "description": "read status of the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedPersistentVolumeClaimStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified PersistentVolumeClaim", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedPersistentVolumeClaimStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods": { - "get": { - "description": "list or watch objects of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "create a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "read the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedPod", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "delete a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Pod", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedPod", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/attach": { - "get": { - "description": "connect GET requests to attach of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedPodAttach", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to attach of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedPodAttach", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "name": "stderr", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "name": "stdin", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "name": "stdout", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "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.", - "name": "tty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/binding": { - "post": { - "description": "create binding of a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedPodBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Binding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Binding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/eviction": { - "post": { - "description": "create eviction of a Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedPodEviction", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.Eviction" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.Eviction" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "Eviction", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Eviction", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/exec": { - "get": { - "description": "connect GET requests to exec of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedPodExec", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to exec of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedPodExec", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "Command is the remote command to execute. argv array. Not executed within a shell.", - "name": "command", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard error stream of the pod for this call. Defaults to true.", - "name": "stderr", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "name": "stdin", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Redirect the standard output stream of the pod for this call. Defaults to true.", - "name": "stdout", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", - "name": "tty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/log": { - "get": { - "description": "read log of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "text/plain", - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedPodLog", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "name": "container", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Follow the log stream of the pod. Defaults to false.", - "name": "follow", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "limitBytes", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Return previous terminated container logs. Defaults to false.", - "name": "previous", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "sinceSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "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", - "name": "tailLines", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "name": "timestamps", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/portforward": { - "get": { - "description": "connect GET requests to portforward of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedPodPortforward", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to portforward of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedPodPortforward", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "integer", - "description": "List of ports to forward Required when using WebSockets", - "name": "ports", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PutNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1DeleteNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1OptionsNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1HeadNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PatchNamespacedPodProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to pod.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PutNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1DeleteNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1OptionsNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1HeadNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PatchNamespacedPodProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to pod.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/pods/{name}/status": { - "get": { - "description": "read status of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedPodStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedPodStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Pod", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedPodStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/podtemplates": { - "get": { - "description": "list or watch objects of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "post": { - "description": "create a PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/podtemplates/{name}": { - "get": { - "description": "read the specified PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedPodTemplate", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "put": { - "description": "replace the specified PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "delete": { - "description": "delete a PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified PodTemplate", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedPodTemplate", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodTemplate", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers": { - "get": { - "description": "list or watch objects of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "post": { - "description": "create a ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}": { - "get": { - "description": "read the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedReplicationController", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "delete": { - "description": "delete a ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedReplicationController", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedReplicationControllerScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "put": { - "description": "replace scale of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedReplicationControllerScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedReplicationControllerScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status": { - "get": { - "description": "read status of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedReplicationControllerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedReplicationControllerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified ReplicationController", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedReplicationControllerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "post": { - "description": "create a ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}": { - "get": { - "description": "read the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedResourceQuota", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "delete": { - "description": "delete a ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ResourceQuota", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedResourceQuota", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status": { - "get": { - "description": "read status of the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedResourceQuotaStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedResourceQuotaStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified ResourceQuota", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedResourceQuotaStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/secrets": { - "get": { - "description": "list or watch objects of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "post": { - "description": "create a Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/secrets/{name}": { - "get": { - "description": "read the specified Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedSecret", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "delete": { - "description": "delete a Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Secret", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedSecret", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Secret", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "post": { - "description": "create a ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/serviceaccounts/{name}": { - "get": { - "description": "read the specified ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedServiceAccount", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "delete": { - "description": "delete a ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ServiceAccount", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedServiceAccount", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ServiceAccount", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services": { - "get": { - "description": "list or watch objects of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1NamespacedService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "create a Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1NamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}": { - "get": { - "description": "read the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedService", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "delete a Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1NamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Service", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PutNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1DeleteNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1OptionsNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1HeadNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PatchNamespacedServiceProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PutNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1DeleteNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1OptionsNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1HeadNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PatchNamespacedServiceProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{namespace}/services/{name}/status": { - "get": { - "description": "read status of the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespacedServiceStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespacedServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Service", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespacedServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}": { - "get": { - "description": "read the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1Namespace", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1Namespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "delete": { - "description": "delete a Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1Namespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Namespace", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1Namespace", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}/finalize": { - "put": { - "description": "replace finalize of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespaceFinalize", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/namespaces/{name}/status": { - "get": { - "description": "read status of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NamespaceStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NamespaceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Namespace", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NamespaceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes": { - "get": { - "description": "list or watch objects of kind Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1Node", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "create a Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1Node", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionNode", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}": { - "get": { - "description": "read the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1Node", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1Node", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "delete a Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1Node", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Node", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1Node", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/proxy": { - "get": { - "description": "connect GET requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PutNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1DeleteNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1OptionsNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1HeadNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PatchNodeProxy", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to node.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/proxy/{path}": { - "get": { - "description": "connect GET requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1GetNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "connect PUT requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PutNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "connect POST requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PostNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "connect DELETE requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1DeleteNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "connect OPTIONS requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1OptionsNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "connect HEAD requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1HeadNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "connect PATCH requests to proxy of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "connectCoreV1PatchNodeProxyWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "connect", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "Path is the URL path to use for the current proxy request to node.", - "name": "path", - "in": "query" - } - ] - }, - "/api/v1/nodes/{name}/status": { - "get": { - "description": "read status of the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1NodeStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1NodeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Node", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1NodeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumeclaims": { - "get": { - "description": "list or watch objects of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1PersistentVolumeClaimForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes": { - "get": { - "description": "list or watch objects of kind PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1PersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "post": { - "description": "create a PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "createCoreV1PersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1CollectionPersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes/{name}": { - "get": { - "description": "read the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1PersistentVolume", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "put": { - "description": "replace the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1PersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "delete": { - "description": "delete a PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "deleteCoreV1PersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified PersistentVolume", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1PersistentVolume", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/persistentvolumes/{name}/status": { - "get": { - "description": "read status of the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "readCoreV1PersistentVolumeStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "replaceCoreV1PersistentVolumeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified PersistentVolume", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "patchCoreV1PersistentVolumeStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/api/v1/pods": { - "get": { - "description": "list or watch objects of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1PodForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/podtemplates": { - "get": { - "description": "list or watch objects of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1PodTemplateForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "proxy GET requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1GETNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PUTNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1POSTNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1DELETENamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1OPTIONSNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1HEADNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PATCHNamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path}": { - "get": { - "description": "proxy GET requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1GETNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PUTNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1POSTNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1DELETENamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1OPTIONSNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1HEADNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PATCHNamespacedPodWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/services/{name}": { - "get": { - "description": "proxy GET requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1GETNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PUTNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1POSTNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1DELETENamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1OPTIONSNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1HEADNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PATCHNamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/namespaces/{namespace}/services/{name}/{path}": { - "get": { - "description": "proxy GET requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1GETNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PUTNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1POSTNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1DELETENamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1OPTIONSNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1HEADNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Service", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PATCHNamespacedServiceWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/nodes/{name}": { - "get": { - "description": "proxy GET requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1GETNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PUTNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1POSTNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1DELETENode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1OPTIONSNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1HEADNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PATCHNode", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - } - ] - }, - "/api/v1/proxy/nodes/{name}/{path}": { - "get": { - "description": "proxy GET requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1GETNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "put": { - "description": "proxy PUT requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PUTNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "post": { - "description": "proxy POST requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1POSTNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "delete": { - "description": "proxy DELETE requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1DELETENodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "options": { - "description": "proxy OPTIONS requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1OPTIONSNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "head": { - "description": "proxy HEAD requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1HEADNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "patch": { - "description": "proxy PATCH requests to Node", - "consumes": [ - "*/*" - ], - "produces": [ - "*/*" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "proxyCoreV1PATCHNodeWithPath", - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "proxy", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "path to the resource", - "name": "path", - "in": "path", - "required": true - } - ] - }, - "/api/v1/replicationcontrollers": { - "get": { - "description": "list or watch objects of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1ReplicationControllerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/resourcequotas": { - "get": { - "description": "list or watch objects of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1ResourceQuotaForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/secrets": { - "get": { - "description": "list or watch objects of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1SecretForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/serviceaccounts": { - "get": { - "description": "list or watch objects of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1ServiceAccountForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/services": { - "get": { - "description": "list or watch objects of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "listCoreV1ServiceForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/configmaps": { - "get": { - "description": "watch individual changes to a list of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1ConfigMapListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/endpoints": { - "get": { - "description": "watch individual changes to a list of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1EndpointsListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/events": { - "get": { - "description": "watch individual changes to a list of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1EventListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/limitranges": { - "get": { - "description": "watch individual changes to a list of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1LimitRangeListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces": { - "get": { - "description": "watch individual changes to a list of Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespaceList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps": { - "get": { - "description": "watch individual changes to a list of ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedConfigMapList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { - "get": { - "description": "watch changes to an object of kind ConfigMap", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedConfigMap", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ConfigMap", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ConfigMap", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints": { - "get": { - "description": "watch individual changes to a list of Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedEndpointsList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { - "get": { - "description": "watch changes to an object of kind Endpoints", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedEndpoints", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Endpoints", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events": { - "get": { - "description": "watch individual changes to a list of Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedEventList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/events/{name}": { - "get": { - "description": "watch changes to an object of kind Event", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedEvent", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Event", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Event", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges": { - "get": { - "description": "watch individual changes to a list of LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedLimitRangeList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { - "get": { - "description": "watch changes to an object of kind LimitRange", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedLimitRange", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "LimitRange", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the LimitRange", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { - "get": { - "description": "watch individual changes to a list of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedPersistentVolumeClaimList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { - "get": { - "description": "watch changes to an object of kind PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedPersistentVolumeClaim", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolumeClaim", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods": { - "get": { - "description": "watch individual changes to a list of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedPodList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/pods/{name}": { - "get": { - "description": "watch changes to an object of kind Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedPod", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Pod", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates": { - "get": { - "description": "watch individual changes to a list of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedPodTemplateList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { - "get": { - "description": "watch changes to an object of kind PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedPodTemplate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodTemplate", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { - "get": { - "description": "watch individual changes to a list of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedReplicationControllerList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { - "get": { - "description": "watch changes to an object of kind ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedReplicationController", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicationController", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas": { - "get": { - "description": "watch individual changes to a list of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedResourceQuotaList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { - "get": { - "description": "watch changes to an object of kind ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedResourceQuota", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ResourceQuota", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets": { - "get": { - "description": "watch individual changes to a list of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedSecretList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { - "get": { - "description": "watch changes to an object of kind Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedSecret", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Secret", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { - "get": { - "description": "watch individual changes to a list of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedServiceAccountList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { - "get": { - "description": "watch changes to an object of kind ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedServiceAccount", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ServiceAccount", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services": { - "get": { - "description": "watch individual changes to a list of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedServiceList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{namespace}/services/{name}": { - "get": { - "description": "watch changes to an object of kind Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NamespacedService", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Service", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/namespaces/{name}": { - "get": { - "description": "watch changes to an object of kind Namespace", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1Namespace", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Namespace", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Namespace", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes": { - "get": { - "description": "watch individual changes to a list of Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1NodeList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/nodes/{name}": { - "get": { - "description": "watch changes to an object of kind Node", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1Node", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Node", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Node", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumeclaims": { - "get": { - "description": "watch individual changes to a list of PersistentVolumeClaim", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1PersistentVolumeClaimListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes": { - "get": { - "description": "watch individual changes to a list of PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1PersistentVolumeList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/persistentvolumes/{name}": { - "get": { - "description": "watch changes to an object of kind PersistentVolume", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1PersistentVolume", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PersistentVolume", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PersistentVolume", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/pods": { - "get": { - "description": "watch individual changes to a list of Pod", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1PodListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Pod", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/podtemplates": { - "get": { - "description": "watch individual changes to a list of PodTemplate", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1PodTemplateListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/replicationcontrollers": { - "get": { - "description": "watch individual changes to a list of ReplicationController", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1ReplicationControllerListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ReplicationController", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/resourcequotas": { - "get": { - "description": "watch individual changes to a list of ResourceQuota", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1ResourceQuotaListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/secrets": { - "get": { - "description": "watch individual changes to a list of Secret", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1SecretListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Secret", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/serviceaccounts": { - "get": { - "description": "watch individual changes to a list of ServiceAccount", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1ServiceAccountListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/api/v1/watch/services": { - "get": { - "description": "watch individual changes to a list of Service", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "core_v1" - ], - "operationId": "watchCoreV1ServiceListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "", - "kind": "Service", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/": { - "get": { - "description": "get available API versions", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apis" - ], - "operationId": "getAPIVersions", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/admissionregistration.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration" - ], - "operationId": "getAdmissionregistrationAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/admissionregistration.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "getAdmissionregistrationV1alpha1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations": { - "get": { - "description": "list or watch objects of kind ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "listAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "post": { - "description": "create an ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "createAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteAdmissionregistrationV1alpha1CollectionExternalAdmissionHookConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/externaladmissionhookconfigurations/{name}": { - "get": { - "description": "read the specified ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "readAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "replaceAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete an ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified ExternalAdmissionHookConfiguration", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "patchAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ExternalAdmissionHookConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations": { - "get": { - "description": "list or watch objects of kind InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "listAdmissionregistrationV1alpha1InitializerConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "post": { - "description": "create an InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "createAdmissionregistrationV1alpha1InitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteAdmissionregistrationV1alpha1CollectionInitializerConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}": { - "get": { - "description": "read the specified InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "readAdmissionregistrationV1alpha1InitializerConfiguration", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "replaceAdmissionregistrationV1alpha1InitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete an InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "deleteAdmissionregistrationV1alpha1InitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified InitializerConfiguration", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "patchAdmissionregistrationV1alpha1InitializerConfiguration", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the InitializerConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/externaladmissionhookconfigurations": { - "get": { - "description": "watch individual changes to a list of ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "watchAdmissionregistrationV1alpha1ExternalAdmissionHookConfigurationList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/externaladmissionhookconfigurations/{name}": { - "get": { - "description": "watch changes to an object of kind ExternalAdmissionHookConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "watchAdmissionregistrationV1alpha1ExternalAdmissionHookConfiguration", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ExternalAdmissionHookConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/initializerconfigurations": { - "get": { - "description": "watch individual changes to a list of InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "watchAdmissionregistrationV1alpha1InitializerConfigurationList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/initializerconfigurations/{name}": { - "get": { - "description": "watch changes to an object of kind InitializerConfiguration", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "operationId": "watchAdmissionregistrationV1alpha1InitializerConfiguration", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the InitializerConfiguration", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions" - ], - "operationId": "getApiextensionsAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiextensions.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "getApiextensionsV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions": { - "get": { - "description": "list or watch objects of kind CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "listApiextensionsV1beta1CustomResourceDefinition", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "post": { - "description": "create a CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "createApiextensionsV1beta1CustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "deleteApiextensionsV1beta1CollectionCustomResourceDefinition", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}": { - "get": { - "description": "read the specified CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "readApiextensionsV1beta1CustomResourceDefinition", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "replaceApiextensionsV1beta1CustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "deleteApiextensionsV1beta1CustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified CustomResourceDefinition", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "patchApiextensionsV1beta1CustomResourceDefinition", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CustomResourceDefinition", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status": { - "put": { - "description": "replace status of the specified CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "replaceApiextensionsV1beta1CustomResourceDefinitionStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CustomResourceDefinition", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions": { - "get": { - "description": "watch individual changes to a list of CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "watchApiextensionsV1beta1CustomResourceDefinitionList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions/{name}": { - "get": { - "description": "watch changes to an object of kind CustomResourceDefinition", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1beta1" - ], - "operationId": "watchApiextensionsV1beta1CustomResourceDefinition", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CustomResourceDefinition", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration" - ], - "operationId": "getApiregistrationAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiregistration.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "getApiregistrationV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apiregistration.k8s.io/v1beta1/apiservices": { - "get": { - "description": "list or watch objects of kind APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "listApiregistrationV1beta1APIService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "post": { - "description": "create an APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "createApiregistrationV1beta1APIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "deleteApiregistrationV1beta1CollectionAPIService", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}": { - "get": { - "description": "read the specified APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "readApiregistrationV1beta1APIService", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "replaceApiregistrationV1beta1APIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete an APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "deleteApiregistrationV1beta1APIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified APIService", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "patchApiregistrationV1beta1APIService", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the APIService", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status": { - "put": { - "description": "replace status of the specified APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "replaceApiregistrationV1beta1APIServiceStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the APIService", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices": { - "get": { - "description": "watch individual changes to a list of APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "watchApiregistrationV1beta1APIServiceList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices/{name}": { - "get": { - "description": "watch changes to an object of kind APIService", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1beta1" - ], - "operationId": "watchApiregistrationV1beta1APIService", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the APIService", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps" - ], - "operationId": "getAppsAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "getAppsV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta1/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listAppsV1beta1ControllerRevisionForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listAppsV1beta1DeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listAppsV1beta1NamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createAppsV1beta1NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteAppsV1beta1CollectionNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "description": "read the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteAppsV1beta1NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ControllerRevision", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listAppsV1beta1NamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createAppsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteAppsV1beta1CollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteAppsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createAppsV1beta1NamespacedDeploymentRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DeploymentRollback", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedDeploymentScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listAppsV1beta1NamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "post": { - "description": "create a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "createAppsV1beta1NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteAppsV1beta1CollectionNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "read the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "deleteAppsV1beta1NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale": { - "get": { - "description": "read scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedStatefulSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "description": "read status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "readAppsV1beta1NamespacedStatefulSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "replaceAppsV1beta1NamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "patchAppsV1beta1NamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "listAppsV1beta1StatefulSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/controllerrevisions": { - "get": { - "description": "watch individual changes to a list of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1ControllerRevisionListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1DeploymentListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions": { - "get": { - "description": "watch individual changes to a list of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1NamespacedControllerRevisionList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "description": "watch changes to an object of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1NamespacedControllerRevision", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1NamespacedDeploymentList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "watch changes to an object of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1NamespacedDeployment", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { - "get": { - "description": "watch individual changes to a list of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1NamespacedStatefulSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "watch changes to an object of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1NamespacedStatefulSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta1/watch/statefulsets": { - "get": { - "description": "watch individual changes to a list of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "operationId": "watchAppsV1beta1StatefulSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "getAppsV1beta2APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/apps/v1beta2/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2ControllerRevisionForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2DaemonSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2DeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions": { - "get": { - "description": "list or watch objects of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2NamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "post": { - "description": "create a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createAppsV1beta2NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2CollectionNamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "description": "read the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedControllerRevision", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified ControllerRevision", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedControllerRevision", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2NamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "post": { - "description": "create a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createAppsV1beta2NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2CollectionNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "read the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "description": "read status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedDaemonSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2NamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createAppsV1beta2NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2CollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedDeploymentScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "put": { - "description": "replace scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update scale of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2NamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "post": { - "description": "create a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createAppsV1beta2NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2CollectionNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "read the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedReplicaSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "put": { - "description": "replace scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status": { - "get": { - "description": "read status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedReplicaSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2NamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "post": { - "description": "create a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "createAppsV1beta2NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete collection of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2CollectionNamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "read the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedStatefulSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "delete": { - "description": "delete a StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "deleteAppsV1beta2NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedStatefulSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale": { - "get": { - "description": "read scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedStatefulSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "put": { - "description": "replace scale of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update scale of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedStatefulSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status": { - "get": { - "description": "read status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "readAppsV1beta2NamespacedStatefulSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "put": { - "description": "replace status of the specified StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "replaceAppsV1beta2NamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "patch": { - "description": "partially update status of the specified StatefulSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "patchAppsV1beta2NamespacedStatefulSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2ReplicaSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/statefulsets": { - "get": { - "description": "list or watch objects of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "listAppsV1beta2StatefulSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/controllerrevisions": { - "get": { - "description": "watch individual changes to a list of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2ControllerRevisionListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/daemonsets": { - "get": { - "description": "watch individual changes to a list of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2DaemonSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2DeploymentListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions": { - "get": { - "description": "watch individual changes to a list of ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedControllerRevisionList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "get": { - "description": "watch changes to an object of kind ControllerRevision", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedControllerRevision", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ControllerRevision", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets": { - "get": { - "description": "watch individual changes to a list of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedDaemonSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "watch changes to an object of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedDaemonSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedDeploymentList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "watch changes to an object of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedDeployment", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets": { - "get": { - "description": "watch individual changes to a list of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedReplicaSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "watch changes to an object of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedReplicaSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets": { - "get": { - "description": "watch individual changes to a list of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedStatefulSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets/{name}": { - "get": { - "description": "watch changes to an object of kind StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2NamespacedStatefulSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StatefulSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/replicasets": { - "get": { - "description": "watch individual changes to a list of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2ReplicaSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/apps/v1beta2/watch/statefulsets": { - "get": { - "description": "watch individual changes to a list of StatefulSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta2" - ], - "operationId": "watchAppsV1beta2StatefulSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication" - ], - "operationId": "getAuthenticationAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "operationId": "getAuthenticationV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { - "post": { - "description": "create a TokenReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "operationId": "createAuthenticationV1TokenReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authentication.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "getAuthenticationV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authentication.k8s.io/v1beta1/tokenreviews": { - "post": { - "description": "create a TokenReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1beta1" - ], - "operationId": "createAuthenticationV1beta1TokenReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization" - ], - "operationId": "getAuthorizationAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "getAuthorizationV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createAuthorizationV1NamespacedLocalSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createAuthorizationV1SelfSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { - "post": { - "description": "create a SelfSubjectRulesReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createAuthorizationV1SelfSubjectRulesReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "operationId": "createAuthorizationV1SubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "getAuthorizationV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews": { - "post": { - "description": "create a LocalSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createAuthorizationV1beta1NamespacedLocalSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.LocalSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews": { - "post": { - "description": "create a SelfSubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createAuthorizationV1beta1SelfSubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews": { - "post": { - "description": "create a SelfSubjectRulesReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createAuthorizationV1beta1SelfSubjectRulesReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectRulesReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews": { - "post": { - "description": "create a SubjectAccessReview", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1beta1" - ], - "operationId": "createAuthorizationV1beta1SubjectAccessReview", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReview" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling" - ], - "operationId": "getAutoscalingAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "getAutoscalingV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "listAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "createAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteAutoscalingV1CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "put": { - "description": "replace the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "delete": { - "description": "delete a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "deleteAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "description": "read status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "replaceAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "patchAutoscalingV1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscalerList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "watch changes to an object of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "operationId": "watchAutoscalingV1NamespacedHorizontalPodAutoscaler", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "getAutoscalingV2beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/autoscaling/v2beta1/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "listAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "post": { - "description": "create a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "createAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "delete": { - "description": "delete collection of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "deleteAutoscalingV2beta1CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "read the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "readAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "description": "replace the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "replaceAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "delete": { - "description": "delete a HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "deleteAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "patch": { - "description": "partially update the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "patchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "description": "read status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "readAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "put": { - "description": "replace status of the specified HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "replaceAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "patch": { - "description": "partially update status of the specified HorizontalPodAutoscaler", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "patchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "watchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "description": "watch individual changes to a list of HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "watchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "description": "watch changes to an object of kind HorizontalPodAutoscaler", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta1" - ], - "operationId": "watchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the HorizontalPodAutoscaler", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch" - ], - "operationId": "getBatchAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "getBatchV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listBatchV1JobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "get": { - "description": "list or watch objects of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "listBatchV1NamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "post": { - "description": "create a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "createBatchV1NamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteBatchV1CollectionNamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "read the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "readBatchV1NamespacedJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "replaceBatchV1NamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "delete": { - "description": "delete a Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "deleteBatchV1NamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Job", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "patchBatchV1NamespacedJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { - "get": { - "description": "read status of the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "readBatchV1NamespacedJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "put": { - "description": "replace status of the specified Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "replaceBatchV1NamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "patch": { - "description": "partially update status of the specified Job", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "patchBatchV1NamespacedJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/jobs": { - "get": { - "description": "watch individual changes to a list of Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "watchBatchV1JobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "get": { - "description": "watch individual changes to a list of Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "watchBatchV1NamespacedJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "get": { - "description": "watch changes to an object of kind Job", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "operationId": "watchBatchV1NamespacedJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Job", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "getBatchV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v1beta1/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "listBatchV1beta1CronJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "listBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "post": { - "description": "create a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "createBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "deleteBatchV1beta1CollectionNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "read the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "readBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "replaceBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "deleteBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "patchBatchV1beta1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "description": "read status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "readBatchV1beta1NamespacedCronJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "replaceBatchV1beta1NamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "patchBatchV1beta1NamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/watch/cronjobs": { - "get": { - "description": "watch individual changes to a list of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "watchBatchV1beta1CronJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs": { - "get": { - "description": "watch individual changes to a list of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "watchBatchV1beta1NamespacedCronJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "watch changes to an object of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v1beta1" - ], - "operationId": "watchBatchV1beta1NamespacedCronJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "getBatchV2alpha1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/batch/v2alpha1/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listBatchV2alpha1CronJobForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs": { - "get": { - "description": "list or watch objects of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "listBatchV2alpha1NamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "post": { - "description": "create a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "createBatchV2alpha1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "delete": { - "description": "delete collection of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteBatchV2alpha1CollectionNamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "read the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readBatchV2alpha1NamespacedCronJob", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "put": { - "description": "replace the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceBatchV2alpha1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "delete": { - "description": "delete a CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "deleteBatchV2alpha1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "patch": { - "description": "partially update the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchBatchV2alpha1NamespacedCronJob", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status": { - "get": { - "description": "read status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "readBatchV2alpha1NamespacedCronJobStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "put": { - "description": "replace status of the specified CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "replaceBatchV2alpha1NamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "patch": { - "description": "partially update status of the specified CronJob", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "patchBatchV2alpha1NamespacedCronJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/cronjobs": { - "get": { - "description": "watch individual changes to a list of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "watchBatchV2alpha1CronJobListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { - "get": { - "description": "watch individual changes to a list of CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "watchBatchV2alpha1NamespacedCronJobList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { - "get": { - "description": "watch changes to an object of kind CronJob", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "batch_v2alpha1" - ], - "operationId": "watchBatchV2alpha1NamespacedCronJob", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CronJob", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates" - ], - "operationId": "getCertificatesAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "getCertificatesV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests": { - "get": { - "description": "list or watch objects of kind CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "listCertificatesV1beta1CertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "post": { - "description": "create a CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "createCertificatesV1beta1CertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "deleteCertificatesV1beta1CollectionCertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}": { - "get": { - "description": "read the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "readCertificatesV1beta1CertificateSigningRequest", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificatesV1beta1CertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "deleteCertificatesV1beta1CertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified CertificateSigningRequest", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "patchCertificatesV1beta1CertificateSigningRequest", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval": { - "put": { - "description": "replace approval of the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificatesV1beta1CertificateSigningRequestApproval", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status": { - "put": { - "description": "replace status of the specified CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "replaceCertificatesV1beta1CertificateSigningRequestStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { - "get": { - "description": "watch individual changes to a list of CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "watchCertificatesV1beta1CertificateSigningRequestList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { - "get": { - "description": "watch changes to an object of kind CertificateSigningRequest", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "operationId": "watchCertificatesV1beta1CertificateSigningRequest", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the CertificateSigningRequest", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions" - ], - "operationId": "getExtensionsAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/extensions/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "getExtensionsV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/extensions/v1beta1/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1DaemonSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1DeploymentForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1IngressForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets": { - "get": { - "description": "list or watch objects of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1NamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "post": { - "description": "create a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1CollectionNamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "read the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedDaemonSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedDaemonSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status": { - "get": { - "description": "read status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedDaemonSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified DaemonSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedDaemonSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments": { - "get": { - "description": "list or watch objects of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1NamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "post": { - "description": "create a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1CollectionNamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "read the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedDeployment", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedDeployment", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback": { - "post": { - "description": "create rollback of a Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1NamespacedDeploymentRollback", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentRollback" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentRollback" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the DeploymentRollback", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "description": "read scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedDeploymentScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedDeploymentScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status": { - "get": { - "description": "read status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedDeploymentStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified Deployment", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedDeploymentStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses": { - "get": { - "description": "list or watch objects of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1NamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "post": { - "description": "create an Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1NamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1CollectionNamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}": { - "get": { - "description": "read the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedIngress", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete an Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1NamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Ingress", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedIngress", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status": { - "get": { - "description": "read status of the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedIngressStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedIngressStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified Ingress", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedIngressStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1NamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "post": { - "description": "create a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1CollectionNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "read the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified NetworkPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1NamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1CollectionNamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "read the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedReplicaSet", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedReplicaSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedReplicaSetScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedReplicaSetScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status": { - "get": { - "description": "read status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedReplicaSetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified ReplicaSet", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedReplicaSetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale": { - "get": { - "description": "read scale of the specified ReplicationControllerDummy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1NamespacedReplicationControllerDummyScale", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "put": { - "description": "replace scale of the specified ReplicationControllerDummy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1NamespacedReplicationControllerDummyScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update scale of the specified ReplicationControllerDummy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1NamespacedReplicationControllerDummyScale", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Scale", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1NetworkPolicyForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies": { - "get": { - "description": "list or watch objects of kind PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1PodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "post": { - "description": "create a PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "createExtensionsV1beta1PodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1CollectionPodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/podsecuritypolicies/{name}": { - "get": { - "description": "read the specified PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "readExtensionsV1beta1PodSecurityPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "replaceExtensionsV1beta1PodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "deleteExtensionsV1beta1PodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified PodSecurityPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "patchExtensionsV1beta1PodSecurityPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/replicasets": { - "get": { - "description": "list or watch objects of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "listExtensionsV1beta1ReplicaSetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/daemonsets": { - "get": { - "description": "watch individual changes to a list of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1DaemonSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1DeploymentListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/ingresses": { - "get": { - "description": "watch individual changes to a list of Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1IngressListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { - "get": { - "description": "watch individual changes to a list of DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedDaemonSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { - "get": { - "description": "watch changes to an object of kind DaemonSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedDaemonSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the DaemonSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { - "get": { - "description": "watch individual changes to a list of Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedDeploymentList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { - "get": { - "description": "watch changes to an object of kind Deployment", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedDeployment", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Deployment", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { - "get": { - "description": "watch individual changes to a list of Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedIngressList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { - "get": { - "description": "watch changes to an object of kind Ingress", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedIngress", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Ingress", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "watch individual changes to a list of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedNetworkPolicyList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "watch changes to an object of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedNetworkPolicy", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { - "get": { - "description": "watch individual changes to a list of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedReplicaSetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { - "get": { - "description": "watch changes to an object of kind ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NamespacedReplicaSet", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ReplicaSet", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/networkpolicies": { - "get": { - "description": "watch individual changes to a list of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1NetworkPolicyListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies": { - "get": { - "description": "watch individual changes to a list of PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1PodSecurityPolicyList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { - "get": { - "description": "watch changes to an object of kind PodSecurityPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1PodSecurityPolicy", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodSecurityPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/extensions/v1beta1/watch/replicasets": { - "get": { - "description": "watch individual changes to a list of ReplicaSet", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "extensions_v1beta1" - ], - "operationId": "watchExtensionsV1beta1ReplicaSetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking" - ], - "operationId": "getNetworkingAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "getNetworkingV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "listNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "post": { - "description": "create a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "createNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "deleteNetworkingV1CollectionNamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "read the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "readNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "put": { - "description": "replace the specified NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "replaceNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "delete": { - "description": "delete a NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "deleteNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified NetworkPolicy", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "patchNetworkingV1NamespacedNetworkPolicy", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/networkpolicies": { - "get": { - "description": "list or watch objects of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "listNetworkingV1NetworkPolicyForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { - "get": { - "description": "watch individual changes to a list of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "watchNetworkingV1NamespacedNetworkPolicyList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "get": { - "description": "watch changes to an object of kind NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "watchNetworkingV1NamespacedNetworkPolicy", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the NetworkPolicy", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { - "get": { - "description": "watch individual changes to a list of NetworkPolicy", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "operationId": "watchNetworkingV1NetworkPolicyListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy" - ], - "operationId": "getPolicyAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "getPolicyV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "post": { - "description": "create a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "createPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deletePolicyV1beta1CollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "description": "read the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replacePolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "deletePolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchPolicyV1beta1NamespacedPodDisruptionBudget", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "description": "read status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "readPolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "put": { - "description": "replace status of the specified PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "replacePolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update status of the specified PodDisruptionBudget", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "patchPolicyV1beta1NamespacedPodDisruptionBudgetStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/poddisruptionbudgets": { - "get": { - "description": "list or watch objects of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "listPolicyV1beta1PodDisruptionBudgetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { - "get": { - "description": "watch individual changes to a list of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "watchPolicyV1beta1NamespacedPodDisruptionBudgetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { - "get": { - "description": "watch changes to an object of kind PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "watchPolicyV1beta1NamespacedPodDisruptionBudget", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodDisruptionBudget", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/policy/v1beta1/watch/poddisruptionbudgets": { - "get": { - "description": "watch individual changes to a list of PodDisruptionBudget", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "operationId": "watchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization" - ], - "operationId": "getRbacAuthorizationAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "getRbacAuthorizationV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1CollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readRbacAuthorizationV1ClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchRbacAuthorizationV1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1CollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readRbacAuthorizationV1ClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchRbacAuthorizationV1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readRbacAuthorizationV1NamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchRbacAuthorizationV1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "createRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1CollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "readRbacAuthorizationV1NamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "replaceRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "deleteRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "patchRbacAuthorizationV1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRbacAuthorizationV1RoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "listRbacAuthorizationV1RoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { - "get": { - "description": "watch individual changes to a list of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1ClusterRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1ClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { - "get": { - "description": "watch individual changes to a list of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1ClusterRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1ClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { - "get": { - "description": "watch individual changes to a list of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1NamespacedRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1NamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { - "get": { - "description": "watch individual changes to a list of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1NamespacedRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "watch changes to an object of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1NamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { - "get": { - "description": "watch individual changes to a list of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1RoleBindingListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/roles": { - "get": { - "description": "watch individual changes to a list of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1" - ], - "operationId": "watchRbacAuthorizationV1RoleListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "getRbacAuthorizationV1alpha1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1CollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readRbacAuthorizationV1alpha1ClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchRbacAuthorizationV1alpha1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1CollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readRbacAuthorizationV1alpha1ClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchRbacAuthorizationV1alpha1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1CollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readRbacAuthorizationV1alpha1NamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchRbacAuthorizationV1alpha1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "createRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1CollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "readRbacAuthorizationV1alpha1NamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "replaceRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "deleteRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "patchRbacAuthorizationV1alpha1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRbacAuthorizationV1alpha1RoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "listRbacAuthorizationV1alpha1RoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { - "get": { - "description": "watch individual changes to a list of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1ClusterRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1ClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { - "get": { - "description": "watch individual changes to a list of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1ClusterRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1ClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { - "get": { - "description": "watch individual changes to a list of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { - "get": { - "description": "watch individual changes to a list of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "watch changes to an object of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1NamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { - "get": { - "description": "watch individual changes to a list of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1RoleBindingListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { - "get": { - "description": "watch individual changes to a list of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1alpha1" - ], - "operationId": "watchRbacAuthorizationV1alpha1RoleListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "getRbacAuthorizationV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings": { - "get": { - "description": "list or watch objects of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRbacAuthorizationV1beta1ClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createRbacAuthorizationV1beta1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1CollectionClusterRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}": { - "get": { - "description": "read the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readRbacAuthorizationV1beta1ClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceRbacAuthorizationV1beta1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ClusterRoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchRbacAuthorizationV1beta1ClusterRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles": { - "get": { - "description": "list or watch objects of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRbacAuthorizationV1beta1ClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "post": { - "description": "create a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createRbacAuthorizationV1beta1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1CollectionClusterRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}": { - "get": { - "description": "read the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readRbacAuthorizationV1beta1ClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceRbacAuthorizationV1beta1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified ClusterRole", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchRbacAuthorizationV1beta1ClusterRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRbacAuthorizationV1beta1NamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "post": { - "description": "create a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createRbacAuthorizationV1beta1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1CollectionNamespacedRoleBinding", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "read the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readRbacAuthorizationV1beta1NamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceRbacAuthorizationV1beta1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified RoleBinding", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchRbacAuthorizationV1beta1NamespacedRoleBinding", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRbacAuthorizationV1beta1NamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "post": { - "description": "create a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "createRbacAuthorizationV1beta1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1CollectionNamespacedRole", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "read the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "readRbacAuthorizationV1beta1NamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "replaceRbacAuthorizationV1beta1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "deleteRbacAuthorizationV1beta1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified Role", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "patchRbacAuthorizationV1beta1NamespacedRole", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/rolebindings": { - "get": { - "description": "list or watch objects of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRbacAuthorizationV1beta1RoleBindingForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBindingList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/roles": { - "get": { - "description": "list or watch objects of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "listRbacAuthorizationV1beta1RoleForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { - "get": { - "description": "watch individual changes to a list of ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1ClusterRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1ClusterRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { - "get": { - "description": "watch individual changes to a list of ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1ClusterRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { - "get": { - "description": "watch changes to an object of kind ClusterRole", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1ClusterRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the ClusterRole", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { - "get": { - "description": "watch individual changes to a list of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1NamespacedRoleBindingList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { - "get": { - "description": "watch changes to an object of kind RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1NamespacedRoleBinding", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the RoleBinding", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { - "get": { - "description": "watch individual changes to a list of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1NamespacedRoleList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { - "get": { - "description": "watch changes to an object of kind Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1NamespacedRole", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the Role", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { - "get": { - "description": "watch individual changes to a list of RoleBinding", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1RoleBindingListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { - "get": { - "description": "watch individual changes to a list of Role", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "rbacAuthorization_v1beta1" - ], - "operationId": "watchRbacAuthorizationV1beta1RoleListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ], - "operationId": "getSchedulingAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/scheduling.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "getSchedulingV1alpha1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/scheduling.k8s.io/v1alpha1/priorityclasses": { - "get": { - "description": "list or watch objects of kind PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "listSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "createSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "deleteSchedulingV1alpha1CollectionPriorityClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}": { - "get": { - "description": "read the specified PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "readSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "replaceSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "deleteSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified PriorityClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "patchSchedulingV1alpha1PriorityClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PriorityClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses": { - "get": { - "description": "watch individual changes to a list of PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "watchSchedulingV1alpha1PriorityClassList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses/{name}": { - "get": { - "description": "watch changes to an object of kind PriorityClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "scheduling_v1alpha1" - ], - "operationId": "watchSchedulingV1alpha1PriorityClass", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PriorityClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings" - ], - "operationId": "getSettingsAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "getSettingsV1alpha1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "listSettingsV1alpha1NamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPresetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "post": { - "description": "create a PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "createSettingsV1alpha1NamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete collection of PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "deleteSettingsV1alpha1CollectionNamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}": { - "get": { - "description": "read the specified PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "readSettingsV1alpha1NamespacedPodPreset", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "put": { - "description": "replace the specified PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "replaceSettingsV1alpha1NamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "delete": { - "description": "delete a PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "deleteSettingsV1alpha1NamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "patch": { - "description": "partially update the specified PodPreset", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "patchSettingsV1alpha1NamespacedPodPreset", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/podpresets": { - "get": { - "description": "list or watch objects of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "listSettingsV1alpha1PodPresetForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPresetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { - "get": { - "description": "watch individual changes to a list of PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "watchSettingsV1alpha1NamespacedPodPresetList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { - "get": { - "description": "watch changes to an object of kind PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "watchSettingsV1alpha1NamespacedPodPreset", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the PodPreset", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "object name and auth scope, such as for teams and projects", - "name": "namespace", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { - "get": { - "description": "watch individual changes to a list of PodPreset", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "settings_v1alpha1" - ], - "operationId": "watchSettingsV1alpha1PodPresetListForAllNamespaces", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/": { - "get": { - "description": "get information of a group", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage" - ], - "operationId": "getStorageAPIGroup", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "getStorageV1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "listStorageV1StorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "post": { - "description": "create a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "createStorageV1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "delete": { - "description": "delete collection of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "deleteStorageV1CollectionStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "readStorageV1StorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "put": { - "description": "replace the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "replaceStorageV1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "delete": { - "description": "delete a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "deleteStorageV1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "patch": { - "description": "partially update the specified StorageClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "patchStorageV1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses": { - "get": { - "description": "watch individual changes to a list of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "watchStorageV1StorageClassList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { - "get": { - "description": "watch changes to an object of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1" - ], - "operationId": "watchStorageV1StorageClass", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/": { - "get": { - "description": "get available resources", - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "getStorageV1beta1APIResources", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/apis/storage.k8s.io/v1beta1/storageclasses": { - "get": { - "description": "list or watch objects of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "listStorageV1beta1StorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "post": { - "description": "create a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "createStorageV1beta1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete collection of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "deleteStorageV1beta1CollectionStorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/storageclasses/{name}": { - "get": { - "description": "read the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "readStorageV1beta1StorageClass", - "parameters": [ - { - "uniqueItems": true, - "type": "boolean", - "description": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.", - "name": "exact", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Should this value be exported. Export strips fields that a user can not specify.", - "name": "export", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "put": { - "description": "replace the specified StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "replaceStorageV1beta1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "delete": { - "description": "delete a StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "deleteStorageV1beta1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "uniqueItems": true, - "type": "integer", - "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.", - "name": "gracePeriodSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "name": "orphanDependents", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "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.", - "name": "propagationPolicy", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "patch": { - "description": "partially update the specified StorageClass", - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "patchStorageV1beta1StorageClass", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { - "get": { - "description": "watch individual changes to a list of StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "watchStorageV1beta1StorageClassList", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { - "get": { - "description": "watch changes to an object of kind StorageClass", - "consumes": [ - "*/*" - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "schemes": [ - "https" - ], - "tags": [ - "storage_v1beta1" - ], - "operationId": "watchStorageV1beta1StorageClass", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error 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.", - "name": "continue", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "name": "fieldSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "If true, partially initialized resources are included in the response.", - "name": "includeUninitialized", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "name": "labelSelector", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "name": "limit", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "name of the StorageClass", - "name": "name", - "in": "path", - "required": true - }, - { - "uniqueItems": true, - "type": "string", - "description": "If 'true', then the output is pretty printed.", - "name": "pretty", - "in": "query" - }, - { - "uniqueItems": true, - "type": "string", - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "name": "resourceVersion", - "in": "query" - }, - { - "uniqueItems": true, - "type": "integer", - "description": "Timeout for the list/watch call.", - "name": "timeoutSeconds", - "in": "query" - }, - { - "uniqueItems": true, - "type": "boolean", - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "name": "watch", - "in": "query" - } - ] - }, - "/logs/": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileListHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - } - } - }, - "/logs/{logpath}": { - "get": { - "schemes": [ - "https" - ], - "tags": [ - "logs" - ], - "operationId": "logFileHandler", - "responses": { - "401": { - "description": "Unauthorized" - } - } - }, - "parameters": [ - { - "uniqueItems": true, - "type": "string", - "description": "path to the log", - "name": "logpath", - "in": "path", - "required": true - } - ] - }, - "/version/": { - "get": { - "description": "get the code version", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "schemes": [ - "https" - ], - "tags": [ - "version" - ], - "operationId": "getCodeVersion", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.version.Info" - } - }, - "401": { - "description": "Unauthorized" - } - } - } - } - }, - "definitions": { - "io.k8s.api.admissionregistration.v1alpha1.AdmissionHookClientConfig": { - "description": "AdmissionHookClientConfig contains the information to make a TLS connection with the webhook", - "required": [ - "service", - "caBundle" - ], - "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate webhook's server certificate. Required", - "type": "string", - "format": "byte" - }, - "service": { - "description": "Service is a reference to the service for this webhook. If there is only one port open for the service, that port will be used. If there are multiple ports open, port 443 will be used if it is open, otherwise it is an error. Required", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ServiceReference" - } - } - }, - "io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHook": { - "description": "ExternalAdmissionHook describes an external admission webhook and the resources and operations it applies to.", - "required": [ - "name", - "clientConfig" - ], - "properties": { - "clientConfig": { - "description": "ClientConfig defines how to communicate with the hook. Required", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.AdmissionHookClientConfig" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "type": "string" - }, - "name": { - "description": "The name of the external 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" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.RuleWithOperations" - } - } - } - }, - "io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration": { - "description": "ExternalAdmissionHookConfiguration describes the configuration of initializers.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "externalAdmissionHooks": { - "description": "ExternalAdmissionHooks is a list of external admission webhooks and the affected resources and operations.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHook" - }, - "x-kubernetes-patch-merge-key": "name", - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfiguration", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfigurationList": { - "description": "ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ExternalAdmissionHookConfiguration.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "ExternalAdmissionHookConfigurationList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.admissionregistration.v1alpha1.Initializer": { - "description": "Initializer describes the name and the failure policy of an initializer, and what resources it applies to.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where \"alwayspullimages\" is the name of the webhook, and kubernetes.io is the name of the organization. Required", - "type": "string" - }, - "rules": { - "description": "Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule. Rule.Resources must not include subresources.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Rule" - } - } - } - }, - "io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration": { - "description": "InitializerConfiguration describes the configuration of initializers.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "initializers": { - "description": "Initializers is a list of resources and their default initializers Order-sensitive. When merging multiple InitializerConfigurations, we sort the initializers from different InitializerConfigurations by the name of the InitializerConfigurations; the order of the initializers from the same InitializerConfiguration is preserved.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Initializer" - }, - "x-kubernetes-patch-merge-key": "name", - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfiguration", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.admissionregistration.v1alpha1.InitializerConfigurationList": { - "description": "InitializerConfigurationList is a list of InitializerConfiguration.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of InitializerConfiguration.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "admissionregistration.k8s.io", - "kind": "InitializerConfigurationList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.admissionregistration.v1alpha1.Rule": { - "description": "Rule is a tuple of APIGroups, APIVersion, 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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.admissionregistration.v1alpha1.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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "operations": { - "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.admissionregistration.v1alpha1.ServiceReference": { - "description": "ServiceReference holds a reference to Service.legacy.k8s.io", - "required": [ - "namespace", - "name" - ], - "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" - } - } - }, - "io.k8s.api.apps.v1beta1.ControllerRevision": { - "description": "DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. 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.", - "required": [ - "revision" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data is the serialized representation of the state.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "revision": { - "description": "Revision indicates the revision of the state represented by Data.", - "type": "integer", - "format": "int64" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.ControllerRevisionList": { - "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ControllerRevisions", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevisionList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.Deployment": { - "description": "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.apps.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.DeploymentRollback": { - "description": "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "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)", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "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 2.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.apps.v1beta1.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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "io.k8s.api.apps.v1beta1.RollbackConfig": { - "description": "DEPRECATED.", - "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollback to the last revision.", - "type": "integer", - "format": "int64" - } - } - }, - "io.k8s.api.apps.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "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 RC 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 RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "maxUnavailable": { - "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 RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.apps.v1beta1.RollingUpdateStatefulSetStrategy": { - "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "properties": { - "partition": { - "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Scale", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "type": "string" - } - } - }, - "io.k8s.api.apps.v1beta1.StatefulSet": { - "description": "DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetSpec" - }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSetList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.apps.v1beta1.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", - "required": [ - "template", - "serviceName" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "serviceName": { - "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for 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": { - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - }, - "updateStrategy": { - "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetUpdateStrategy" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - } - } - }, - "io.k8s.api.apps.v1beta1.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "required": [ - "replicas" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "replicas is the number of Pods created by the StatefulSet controller.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta1.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": { - "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollingUpdateStatefulSetStrategy" - }, - "type": { - "description": "Type indicates the type of the StatefulSetUpdateStrategy.", - "type": "string" - } - } - }, - "io.k8s.api.apps.v1beta2.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.", - "required": [ - "revision" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data is the serialized representation of the state.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "revision": { - "description": "Revision indicates the revision of the state represented by Data.", - "type": "integer", - "format": "int64" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.ControllerRevisionList": { - "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ControllerRevisions", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ControllerRevision" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ControllerRevisionList", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSet", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "A list of daemon sets.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DaemonSetList", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "required": [ - "template" - ], - "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).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - }, - "updateStrategy": { - "description": "An update strategy to replace existing DaemonSet pods with new pods.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DaemonSetUpdateStrategy" - } - } - }, - "io.k8s.api.apps.v1beta2.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "type": "integer", - "format": "int64" - }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta2.DaemonSetUpdateStrategy": { - "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.RollingUpdateDaemonSet" - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "io.k8s.api.apps.v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Deployment", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.apps.v1beta2.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "DeploymentList", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "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)", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.apps.v1beta2.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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.DeploymentCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta2.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "io.k8s.api.apps.v1beta2.ReplicaSet": { - "description": "ReplicaSet represents the configuration of a ReplicaSet.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "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/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ReplicaSet", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.apps.v1beta2.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "ReplicaSetList", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.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)", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.apps.v1beta2.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ReplicaSetCondition" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta2.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", - "properties": { - "maxUnavailable": { - "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. 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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.apps.v1beta2.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "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 RC 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 RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "maxUnavailable": { - "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 RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.apps.v1beta2.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.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "Scale", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.ScaleSpec": { - "description": "ScaleSpec describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta2.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "type": "string" - } - } - }, - "io.k8s.api.apps.v1beta2.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired identities of pods in this set.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSetSpec" - }, - "status": { - "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSet", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.StatefulSetList": { - "description": "StatefulSetList is a collection of StatefulSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "apps", - "kind": "StatefulSetList", - "version": "v1beta2" - } - ] - }, - "io.k8s.api.apps.v1beta2.StatefulSetSpec": { - "description": "A StatefulSetSpec is the specification of a StatefulSet.", - "required": [ - "template", - "serviceName" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "serviceName": { - "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for 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": { - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - }, - "updateStrategy": { - "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.StatefulSetUpdateStrategy" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - } - } - }, - "io.k8s.api.apps.v1beta2.StatefulSetStatus": { - "description": "StatefulSetStatus represents the current state of a StatefulSet.", - "required": [ - "replicas" - ], - "properties": { - "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "replicas is the number of Pods created by the StatefulSet controller.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.apps.v1beta2.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": { - "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta2.RollingUpdateStatefulSetStrategy" - }, - "type": { - "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", - "type": "string" - } - } - }, - "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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewStatus" - } - }, - "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": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - } - }, - "io.k8s.api.authentication.v1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "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": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo" - } - } - }, - "io.k8s.api.authentication.v1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - }, - "io.k8s.api.authentication.v1beta1.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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request can be authenticated.", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.authentication.v1beta1.TokenReviewSpec": { - "description": "TokenReviewSpec is a description of the token authentication request.", - "properties": { - "token": { - "description": "Token is the opaque bearer token.", - "type": "string" - } - } - }, - "io.k8s.api.authentication.v1beta1.TokenReviewStatus": { - "description": "TokenReviewStatus is the result of the token authentication request.", - "properties": { - "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": { - "description": "User is the UserInfo associated with the provided token.", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.UserInfo" - } - } - }, - "io.k8s.api.authentication.v1beta1.UserInfo": { - "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "properties": { - "extra": { - "description": "Any additional information provided by the authenticator.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "The names of groups this user is a part of.", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - }, - "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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "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/io.k8s.api.authorization.v1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus" - } - }, - "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" - } - } - }, - "io.k8s.api.authorization.v1.NonResourceRule": { - "description": "NonResourceRule holds information that describes a rule for the non-resource", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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" - } - } - }, - "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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus" - } - }, - "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": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes" - } - } - }, - "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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates the set of actions a user can perform.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectRulesReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" - } - ] - }, - "io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec": { - "properties": { - "namespace": { - "description": "Namespace to evaluate rules for. Required.", - "type": "string" - } - } - }, - "io.k8s.api.authorization.v1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus" - } - }, - "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": { - "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", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "Groups is the groups you're testing for.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes" - }, - "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" - } - } - }, - "io.k8s.api.authorization.v1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "required": [ - "allowed" - ], - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "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" - } - } - }, - "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.", - "required": [ - "resourceRules", - "nonResourceRules", - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceRule" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceRule" - } - } - } - }, - "io.k8s.api.authorization.v1beta1.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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "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/io.k8s.api.authorization.v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.authorization.v1beta1.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" - } - } - }, - "io.k8s.api.authorization.v1beta1.NonResourceRule": { - "description": "NonResourceRule holds information that describes a rule for the non-resource", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.authorization.v1beta1.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" - } - } - }, - "io.k8s.api.authorization.v1beta1.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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.authorization.v1beta1.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", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated. user and groups must be empty", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.authorization.v1beta1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.ResourceAttributes" - } - } - }, - "io.k8s.api.authorization.v1beta1.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.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectRulesReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates the set of actions a user can perform.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectRulesReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.authorization.v1beta1.SelfSubjectRulesReviewSpec": { - "properties": { - "namespace": { - "description": "Namespace to evaluate rules for. Required.", - "type": "string" - } - } - }, - "io.k8s.api.authorization.v1beta1.SubjectAccessReview": { - "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "required": [ - "spec" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec holds information about the request being evaluated", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReviewSpec" - }, - "status": { - "description": "Status is filled in by the server and indicates whether the request is allowed or not", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.authorization.v1beta1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "properties": { - "extra": { - "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", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "group": { - "description": "Groups is the groups you're testing for.", - "type": "array", - "items": { - "type": "string" - } - }, - "nonResourceAttributes": { - "description": "NonResourceAttributes describes information for a non-resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.NonResourceAttributes" - }, - "resourceAttributes": { - "description": "ResourceAuthorizationAttributes describes information for a resource access request", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.ResourceAttributes" - }, - "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 \"Group\", then is it interpreted as \"What if User were not a member of any groups", - "type": "string" - } - } - }, - "io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus": { - "description": "SubjectAccessReviewStatus", - "required": [ - "allowed" - ], - "properties": { - "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", - "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" - } - } - }, - "io.k8s.api.authorization.v1beta1.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.", - "required": [ - "resourceRules", - "nonResourceRules", - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.NonResourceRule" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.ResourceRule" - } - } - } - }, - "io.k8s.api.autoscaling.v1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], - "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/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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "current information about the autoscaler.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - ] - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList": { - "description": "list of horizontal pod autoscaler objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "list of horizontal pod autoscaler objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v1" - } - ] - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec": { - "description": "specification of a horizontal pod autoscaler.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "properties": { - "maxReplicas": { - "description": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "type": "integer", - "format": "int32" - }, - "minReplicas": { - "description": "lower limit for the number of pods that can be set by the autoscaler, default 1.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "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.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference" - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus": { - "description": "current status of a horizontal pod autoscaler", - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "currentReplicas": { - "description": "current number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desired number of replicas of pods managed by this autoscaler.", - "type": "integer", - "format": "int32" - }, - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "observedGeneration": { - "description": "most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleStatus" - } - }, - "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.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.autoscaling.v1.ScaleStatus": { - "description": "ScaleStatus represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "required": [ - "kind", - "name" - ], - "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/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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec" - }, - "status": { - "description": "status is the current information about the autoscaler.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus" - } - }, - "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.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the last time the condition transitioned from one status to another", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of horizontal pod autoscaler objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscaler" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "metadata is the standard list metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.MetricSpec" - } - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.", - "type": "integer", - "format": "int32" - }, - "scaleTargetRef": { - "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.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference" - } - } - }, - "io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "required": [ - "currentReplicas", - "desiredReplicas", - "currentMetrics", - "conditions" - ], - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.HorizontalPodAutoscalerCondition" - } - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.MetricStatus" - } - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "type": "integer", - "format": "int32" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "type": "integer", - "format": "int32" - }, - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "type": "integer", - "format": "int64" - } - } - }, - "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).", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ObjectMetricSource" - }, - "pods": { - "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.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.PodsMetricSource" - }, - "resource": { - "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.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ResourceMetricSource" - }, - "type": { - "description": "type is the type of metric source. It should match one of the fields below.", - "type": "string" - } - } - }, - "io.k8s.api.autoscaling.v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "required": [ - "type" - ], - "properties": { - "object": { - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ObjectMetricStatus" - }, - "pods": { - "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.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.PodsMetricStatus" - }, - "resource": { - "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.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.ResourceMetricStatus" - }, - "type": { - "description": "type is the type of metric source. It will match one of the fields below.", - "type": "string" - } - } - }, - "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).", - "required": [ - "target", - "metricName", - "targetValue" - ], - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference" - }, - "targetValue": { - "description": "targetValue is the target value of the metric (as a quantity).", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - } - }, - "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).", - "required": [ - "target", - "metricName", - "currentValue" - ], - "properties": { - "currentValue": { - "description": "currentValue is the current value of the metric (as a quantity).", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "target": { - "description": "target is the described Kubernetes object.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta1.CrossVersionObjectReference" - } - } - }, - "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.", - "required": [ - "metricName", - "targetAverageValue" - ], - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "targetAverageValue": { - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - } - }, - "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).", - "required": [ - "metricName", - "currentAverageValue" - ], - "properties": { - "currentAverageValue": { - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - } - } - }, - "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.", - "required": [ - "name" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "targetAverageValue": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - } - }, - "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.", - "required": [ - "name", - "currentAverageValue" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "currentAverageValue": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec" - }, - "status": { - "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobStatus" - } - }, - "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.", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time the condition was checked.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.batch.v1.JobList": { - "description": "JobList is a collection of jobs.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of Jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "template" - ], - "properties": { - "activeDeadlineSeconds": { - "description": "Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", - "type": "integer", - "format": "int64" - }, - "backoffLimit": { - "description": "Specifies the number of retries before marking this job failed. Defaults to 6", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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://git.k8s.io/community/contributors/design-proposals/selector-generation.md", - "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/", - "type": "integer", - "format": "int32" - }, - "selector": { - "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", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "template": { - "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/", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.batch.v1.JobStatus": { - "description": "JobStatus represents the current state of a Job.", - "properties": { - "active": { - "description": "The number of actively running pods.", - "type": "integer", - "format": "int32" - }, - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "conditions": { - "description": "The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1.JobCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "failed": { - "description": "The number of pods which reached phase Failed.", - "type": "integer", - "format": "int32" - }, - "startTime": { - "description": "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "succeeded": { - "description": "The number of pods which reached phase Succeeded.", - "type": "integer", - "format": "int32" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobSpec" - }, - "status": { - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJobStatus" - } - }, - "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.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of CronJobs.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.CronJob" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "schedule", - "jobTemplate" - ], - "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Defaults to Allow.", - "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.", - "type": "integer", - "format": "int32" - }, - "jobTemplate": { - "description": "Specifies the job that will be created when executing a CronJob.", - "$ref": "#/definitions/io.k8s.api.batch.v1beta1.JobTemplateSpec" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - } - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - } - } - }, - "io.k8s.api.batch.v1beta1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec" - } - } - }, - "io.k8s.api.batch.v2alpha1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobSpec" - }, - "status": { - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v2alpha1" - } - ] - }, - "io.k8s.api.batch.v2alpha1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of CronJobs.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v2alpha1" - } - ] - }, - "io.k8s.api.batch.v2alpha1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "required": [ - "schedule", - "jobTemplate" - ], - "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Defaults to Allow.", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "jobTemplate": { - "description": "Specifies the job that will be created when executing a CronJob.", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.JobTemplateSpec" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - } - } - }, - "io.k8s.api.batch.v2alpha1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", - "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - } - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - } - } - }, - "io.k8s.api.batch.v2alpha1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", - "properties": { - "metadata": { - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec" - } - } - }, - "io.k8s.api.certificates.v1beta1.CertificateSigningRequest": { - "description": "Describes a certificate signing 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "The certificate request itself and any additional information.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestSpec" - }, - "status": { - "description": "Derived information about the request.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.certificates.v1beta1.CertificateSigningRequestCondition": { - "required": [ - "type" - ], - "properties": { - "lastUpdateTime": { - "description": "timestamp for the last update to this condition", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "message": { - "description": "human readable message with details about the request state", - "type": "string" - }, - "reason": { - "description": "brief reason for the request state", - "type": "string" - }, - "type": { - "description": "request approval state, currently Approved or Denied.", - "type": "string" - } - } - }, - "io.k8s.api.certificates.v1beta1.CertificateSigningRequestList": { - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequestList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.certificates.v1beta1.CertificateSigningRequestSpec": { - "description": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", - "required": [ - "request" - ], - "properties": { - "extra": { - "description": "Extra information about the requesting user. See user.Info interface for details.", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "groups": { - "description": "Group information about the requesting user. See user.Info interface for details.", - "type": "array", - "items": { - "type": "string" - } - }, - "request": { - "description": "Base64-encoded PKCS#10 CSR data", - "type": "string", - "format": "byte" - }, - "uid": { - "description": "UID information about the requesting user. See user.Info interface for details.", - "type": "string" - }, - "usages": { - "description": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12", - "type": "array", - "items": { - "type": "string" - } - }, - "username": { - "description": "Information about the requesting user. See user.Info interface for details.", - "type": "string" - } - } - }, - "io.k8s.api.certificates.v1beta1.CertificateSigningRequestStatus": { - "properties": { - "certificate": { - "description": "If request was approved, the controller will place the issued certificate here.", - "type": "string", - "format": "byte" - }, - "conditions": { - "description": "Conditions applied to the request, such as approval or denial.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestCondition" - } - } - } - }, - "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.", - "required": [ - "volumeID" - ], - "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).", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "io.k8s.api.core.v1.Affinity": { - "description": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity" - }, - "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)).", - "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity" - } - } - }, - "io.k8s.api.core.v1.AttachedVolume": { - "description": "AttachedVolume describes a volume attached to a node", - "required": [ - "name", - "devicePath" - ], - "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" - } - } - }, - "io.k8s.api.core.v1.AzureDiskVolumeSource": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "required": [ - "diskName", - "diskURI" - ], - "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: mulitple 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" - } - } - }, - "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "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" - } - } - }, - "io.k8s.api.core.v1.AzureFileVolumeSource": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "required": [ - "secretName", - "shareName" - ], - "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" - } - } - }, - "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.", - "required": [ - "target" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "target": { - "description": "The target object that you want to bind to the standard object.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Binding", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", - "properties": { - "add": { - "description": "Added capabilities", - "type": "array", - "items": { - "type": "string" - } - }, - "drop": { - "description": "Removed capabilities", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "monitors" - ], - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "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.", - "required": [ - "monitors" - ], - "properties": { - "monitors": { - "description": "Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "user": { - "description": "Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - } - }, - "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.", - "required": [ - "volumeID" - ], - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "volumeID": { - "description": "volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "type": "string" - } - } - }, - "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).", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.core.v1.ComponentCondition": { - "description": "Information about the condition of a component.", - "required": [ - "type", - "status" - ], - "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" - } - } - }, - "io.k8s.api.core.v1.ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "conditions": { - "description": "List of component conditions observed", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentCondition" - }, - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - } - }, - "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.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ComponentStatus objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "data": { - "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'.", - "type": "object", - "additionalProperties": { - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - } - }, - "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" - } - } - }, - "io.k8s.api.core.v1.ConfigMapKeySelector": { - "description": "Selects a key from a ConfigMap.", - "required": [ - "key" - ], - "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 it's key must be defined", - "type": "boolean" - } - } - }, - "io.k8s.api.core.v1.ConfigMapList": { - "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of ConfigMaps.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ConfigMapList", - "version": "v1" - } - ] - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - } - }, - "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 it's keys must be defined", - "type": "boolean" - } - } - }, - "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 to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - } - }, - "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 it's keys must be defined", - "type": "boolean" - } - } - }, - "io.k8s.api.core.v1.Container": { - "description": "A single application container that you want to run within a pod.", - "required": [ - "name" - ], - "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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "type": "array", - "items": { - "type": "string" - } - }, - "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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "type": "array", - "items": { - "type": "string" - } - }, - "env": { - "description": "List of environment variables to set in the container. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" - } - }, - "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": { - "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle" - }, - "livenessProbe": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.Probe" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. 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": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" - }, - "x-kubernetes-patch-merge-key": "containerPort", - "x-kubernetes-patch-strategy": "merge" - }, - "readinessProbe": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.Probe" - }, - "resources": { - "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements" - }, - "securityContext": { - "description": "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md", - "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext" - }, - "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" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" - }, - "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" - } - } - }, - "io.k8s.api.core.v1.ContainerImage": { - "description": "Describe a container image", - "required": [ - "names" - ], - "properties": { - "names": { - "description": "Names by which this image is known. e.g. [\"gcr.io/google_containers/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", - "type": "array", - "items": { - "type": "string" - } - }, - "sizeBytes": { - "description": "The size of the image in bytes.", - "type": "integer", - "format": "int64" - } - } - }, - "io.k8s.api.core.v1.ContainerPort": { - "description": "ContainerPort represents a network port in a single container.", - "required": [ - "containerPort" - ], - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "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 or TCP. Defaults to \"TCP\".", - "type": "string" - } - } - }, - "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": { - "description": "Details about a running container", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning" - }, - "terminated": { - "description": "Details about a terminated container", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated" - }, - "waiting": { - "description": "Details about a waiting container", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting" - } - } - }, - "io.k8s.api.core.v1.ContainerStateRunning": { - "description": "ContainerStateRunning is a running state of a container.", - "properties": { - "startedAt": { - "description": "Time at which the container was last (re-)started", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - } - } - }, - "io.k8s.api.core.v1.ContainerStateTerminated": { - "description": "ContainerStateTerminated is a terminated state of a container.", - "required": [ - "exitCode" - ], - "properties": { - "containerID": { - "description": "Container's ID in the format 'docker://'", - "type": "string" - }, - "exitCode": { - "description": "Exit status from the last termination of the container", - "type": "integer", - "format": "int32" - }, - "finishedAt": { - "description": "Time at which the container last terminated", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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", - "type": "integer", - "format": "int32" - }, - "startedAt": { - "description": "Time at which previous execution of the container started", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - } - } - }, - "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" - } - } - }, - "io.k8s.api.core.v1.ContainerStatus": { - "description": "ContainerStatus contains details for the current status of this container.", - "required": [ - "name", - "ready", - "restartCount", - "image", - "imageID" - ], - "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": { - "description": "Details about the container's last termination condition.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "state": { - "description": "Details about the container's current condition.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState" - } - } - }, - "io.k8s.api.core.v1.DaemonEndpoint": { - "description": "DaemonEndpoint contains information about a single Daemon endpoint.", - "required": [ - "Port" - ], - "properties": { - "Port": { - "description": "Port number of the given endpoint.", - "type": "integer", - "format": "int32" - } - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" - } - } - } - }, - "io.k8s.api.core.v1.DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "required": [ - "path" - ], - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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": { - "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector" - } - } - }, - "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 value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "items": { - "description": "Items is a list of downward API volume file", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" - } - } - } - }, - "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": { - "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", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - } - }, - "io.k8s.api.core.v1.EndpointAddress": { - "description": "EndpointAddress is a tuple that describes single IP address.", - "required": [ - "ip" - ], - "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": { - "description": "Reference to object providing the endpoint.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - } - } - }, - "io.k8s.api.core.v1.EndpointPort": { - "description": "EndpointPort is a tuple that describes a single port.", - "required": [ - "port" - ], - "properties": { - "name": { - "description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP or TCP. Default is TCP.", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - } - }, - "ports": { - "description": "Port numbers available on the related IP addresses.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointPort" - } - } - } - }, - "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 ]", - "required": [ - "subsets" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "subsets": { - "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointSubset" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Endpoints", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.EndpointsList": { - "description": "EndpointsList is a list of endpoints.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of endpoints.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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": { - "description": "The ConfigMap to select from", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource" - }, - "prefix": { - "description": "An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource" - } - } - }, - "io.k8s.api.core.v1.EnvVar": { - "description": "EnvVar represents an environment variable present in a Container.", - "required": [ - "name" - ], - "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 previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource" - } - } - }, - "io.k8s.api.core.v1.EnvVarSource": { - "description": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector" - }, - "resourceFieldRef": { - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" - } - } - }, - "io.k8s.api.core.v1.Event": { - "description": "Event is a report of an event somewhere in the cluster.", - "required": [ - "metadata", - "involvedObject" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "count": { - "description": "The number of times this event has occurred.", - "type": "integer", - "format": "int32" - }, - "firstTimestamp": { - "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "involvedObject": { - "description": "The object that this event is about.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "lastTimestamp": { - "description": "The time at which the most recent occurrence of this event was recorded.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "reason": { - "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", - "type": "string" - }, - "source": { - "description": "The component reporting this event. Should be a short machine understandable string.", - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource" - }, - "type": { - "description": "Type of this event (Normal, Warning), new types could be added in the future", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Event", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.EventList": { - "description": "EventList is a list of events.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of events", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "EventList", - "version": "v1" - } - ] - }, - "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" - } - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "array", - "items": { - "type": "string" - } - }, - "wwids": { - "description": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.core.v1.FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "required": [ - "driver" - ], - "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": { - "description": "Optional: Extra command options if any.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "readOnly": { - "description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - } - } - }, - "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" - } - } - }, - "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.", - "required": [ - "pdName" - ], - "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", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "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.", - "required": [ - "repository" - ], - "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" - } - } - }, - "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.", - "required": [ - "endpoints", - "path" - ], - "properties": { - "endpoints": { - "description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - } - }, - "io.k8s.api.core.v1.HTTPGetAction": { - "description": "HTTPGetAction describes an action based on HTTP Get requests.", - "required": [ - "port" - ], - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" - } - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "scheme": { - "description": "Scheme to use for connecting to the host. Defaults to HTTP.", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "description": "The header field name", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.Handler": { - "description": "Handler defines a specific action that should be taken", - "properties": { - "exec": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction" - } - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - } - }, - "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.", - "required": [ - "path" - ], - "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" - } - } - }, - "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.", - "required": [ - "targetPortal", - "iqn", - "lun" - ], - "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": "Optional: Defaults to 'default' (tcp). iSCSI interface name that uses an iSCSI transport.", - "type": "string" - }, - "lun": { - "description": "iSCSI target lun number.", - "type": "integer", - "format": "int32" - }, - "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).", - "type": "array", - "items": { - "type": "string" - } - }, - "readOnly": { - "description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "type": "boolean" - }, - "secretRef": { - "description": "CHAP secret for iSCSI target and initiator authentication", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "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" - } - } - }, - "io.k8s.api.core.v1.KeyToPath": { - "description": "Maps a string key to a path within a volume.", - "required": [ - "key", - "path" - ], - "properties": { - "key": { - "description": "The key to project.", - "type": "string" - }, - "mode": { - "description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "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": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.Handler" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "$ref": "#/definitions/io.k8s.api.core.v1.Handler" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeSpec" - } - }, - "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": { - "description": "Default resource requirement limit value by resource name if resource limit is omitted.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "defaultRequest": { - "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "max": { - "description": "Max usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "maxLimitRequestRatio": { - "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", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "min": { - "description": "Min usage constraints on this kind by resource name.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "type": { - "description": "Type of resource that this limit applies to.", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.LimitRangeList": { - "description": "LimitRangeList is a list of LimitRange items.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of LimitRange objects. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_limit_range.md", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "limits" - ], - "properties": { - "limits": { - "description": "Limits is the list of LimitRangeItem objects that are enforced.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeItem" - } - } - } - }, - "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" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerIngress" - } - } - } - }, - "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" - } - } - }, - "io.k8s.api.core.v1.LocalVolumeSource": { - "description": "Local represents directly-attached storage with node affinity", - "required": [ - "path" - ], - "properties": { - "path": { - "description": "The full path to the volume on the node For alpha, this path must be a directory Once block as a source is supported, then this path can point to a block device", - "type": "string" - } - } - }, - "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.", - "required": [ - "server", - "path" - ], - "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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceSpec" - }, - "status": { - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "Namespace", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NamespaceList": { - "description": "NamespaceList is a list of Namespaces.", - "required": [ - "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/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/", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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://git.k8s.io/community/contributors/design-proposals/namespaces.md#finalizers", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.core.v1.NamespaceStatus": { - "description": "NamespaceStatus is information about the current status of a Namespace.", - "properties": { - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://git.k8s.io/community/contributors/design-proposals/namespaces.md#phases", - "type": "string" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSpec" - }, - "status": { - "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeStatus" - } - }, - "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.", - "required": [ - "type", - "address" - ], - "properties": { - "address": { - "description": "The node address.", - "type": "string" - }, - "type": { - "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" - } - }, - "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 an update), the system may or may not try to eventually evict the pod from its node.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector" - } - } - }, - "io.k8s.api.core.v1.NodeCondition": { - "description": "NodeCondition contains condition information for a node.", - "required": [ - "type", - "status" - ], - "properties": { - "lastHeartbeatTime": { - "description": "Last time we got an update on a given condition.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastTransitionTime": { - "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.core.v1.NodeConfigSource": { - "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "configMapRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "NodeConfigSource", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.NodeDaemonEndpoints": { - "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "properties": { - "kubeletEndpoint": { - "description": "Endpoint on which Kubelet is listening.", - "$ref": "#/definitions/io.k8s.api.core.v1.DaemonEndpoint" - } - } - }, - "io.k8s.api.core.v1.NodeList": { - "description": "NodeList is the whole list of all Nodes which have been registered with master.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of nodes", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" - } - } - } - }, - "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.", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.core.v1.NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects.", - "required": [ - "matchExpressions" - ], - "properties": { - "matchExpressions": { - "description": "Required. A list of node selector requirements. The requirements are ANDed.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" - } - } - } - }, - "io.k8s.api.core.v1.NodeSpec": { - "description": "NodeSpec describes the attributes that a node is created with.", - "properties": { - "configSource": { - "description": "If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource" - }, - "externalID": { - "description": "External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.", - "type": "string" - }, - "podCIDR": { - "description": "PodCIDR represents the pod IP range assigned to the node.", - "type": "string" - }, - "providerID": { - "description": "ID of the node assigned by the cloud provider in the format: ://", - "type": "string" - }, - "taints": { - "description": "If specified, the node's taints.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Taint" - } - }, - "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" - } - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAddress" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "allocatable": { - "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "capacity": { - "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "conditions": { - "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.NodeCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "daemonEndpoints": { - "description": "Endpoints of daemons running on the Node.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeDaemonEndpoints" - }, - "images": { - "description": "List of container images on this node", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerImage" - } - }, - "nodeInfo": { - "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSystemInfo" - }, - "phase": { - "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", - "type": "string" - }, - "volumesAttached": { - "description": "List of volumes that are attached to the node.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.AttachedVolume" - } - }, - "volumesInUse": { - "description": "List of attachable volumes in use (mounted) by the node.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.core.v1.NodeSystemInfo": { - "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "required": [ - "machineID", - "systemUUID", - "bootID", - "kernelVersion", - "osImage", - "containerRuntimeVersion", - "kubeletVersion", - "kubeProxyVersion", - "operatingSystem", - "architecture" - ], - "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/getting-system-uuid.html", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.ObjectFieldSelector": { - "description": "ObjectFieldSelector selects an APIVersioned field of an object.", - "required": [ - "fieldPath" - ], - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - } - }, - "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/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/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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "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/io.k8s.api.core.v1.PersistentVolumeSpec" - }, - "status": { - "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/io.k8s.api.core.v1.PersistentVolumeStatus" - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "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/io.k8s.api.core.v1.PersistentVolumeClaimSpec" - }, - "status": { - "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/io.k8s.api.core.v1.PersistentVolumeClaimStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PersistentVolumeClaim", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PersistentVolumeClaimCondition": { - "description": "PersistentVolumeClaimCondition contails details about state of pvc", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.core.v1.PersistentVolumeClaimList": { - "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", - "required": [ - "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/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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements" - }, - "selector": { - "description": "A label query over volumes to consider for binding.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "storageClassName": { - "description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeName": { - "description": "VolumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - } - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "capacity": { - "description": "Represents the actual resources of the underlying volume.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "conditions": { - "description": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "phase": { - "description": "Phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - } - }, - "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).", - "required": [ - "claimName" - ], - "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" - } - } - }, - "io.k8s.api.core.v1.PersistentVolumeList": { - "description": "PersistentVolumeList is a list of PersistentVolume items.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "awsElasticBlockStore": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.AzureFilePersistentVolumeSource" - }, - "capacity": { - "description": "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/io.k8s.api.core.v1.CephFSPersistentVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.CinderVolumeSource" - }, - "claimRef": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/io.k8s.api.core.v1.FlexVolumeSource" - }, - "flocker": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsVolumeSource" - }, - "hostPath": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource" - }, - "iscsi": { - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIVolumeSource" - }, - "local": { - "description": "Local represents directly-attached storage with node affinity", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalVolumeSource" - }, - "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", - "type": "array", - "items": { - "type": "string" - } - }, - "nfs": { - "description": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "$ref": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource" - }, - "persistentVolumeReclaimPolicy": { - "description": "What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", - "type": "string" - }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource" - }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource" - }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.RBDVolumeSource" - }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource" - }, - "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": { - "description": "StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSPersistentVolumeSource" - }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource" - } - } - }, - "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" - } - } - }, - "io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource": { - "description": "Represents a Photon Controller persistent disk resource.", - "required": [ - "pdID" - ], - "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" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.PodStatus" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" - } - } - } - }, - "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 tches that of any node on which a pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "namespaces": { - "description": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", - "type": "array", - "items": { - "type": "string" - } - }, - "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. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.", - "type": "string" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" - } - } - } - }, - "io.k8s.api.core.v1.PodCondition": { - "description": "PodCondition contains details for the current condition of this pod.", - "required": [ - "type", - "status" - ], - "properties": { - "lastProbeTime": { - "description": "Last time we probed the condition.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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. Currently only Ready. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.PodList": { - "description": "PodList is a list of Pods.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodList", - "version": "v1" - } - ] - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions" - }, - "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.", - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - } - }, - "io.k8s.api.core.v1.PodSpec": { - "description": "PodSpec is a description of a pod.", - "required": [ - "containers" - ], - "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.", - "type": "integer", - "format": "int64" - }, - "affinity": { - "description": "If specified, the pod's scheduling constraints", - "$ref": "#/definitions/io.k8s.api.core.v1.Affinity" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "type": "boolean" - }, - "containers": { - "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Container" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "dnsPolicy": { - "description": "Set DNS policy for containers within the pod. One of 'ClusterFirstWithHostNet', 'ClusterFirst' or 'Default'. Defaults to \"ClusterFirst\". To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", - "type": "string" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.HostAlias" - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "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, or Liveness 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/", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Container" - }, - "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": { - "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", - "additionalProperties": { - "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.", - "type": "integer", - "format": "int32" - }, - "priorityClassName": { - "description": "If specified, indicates the pod's priority. \"SYSTEM\" is a special keyword which indicates 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" - }, - "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" - }, - "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": { - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext" - }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "type": "string" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "type": "string" - }, - "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 delete immediately. 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.", - "type": "integer", - "format": "int64" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - } - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Volume" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge,retainKeys" - } - } - }, - "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.", - "properties": { - "conditions": { - "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodCondition" - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" - } - }, - "message": { - "description": "A human readable message indicating details about why the pod is in this condition.", - "type": "string" - }, - "phase": { - "description": "Current condition of the pod. More 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" - }, - "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://github.com/kubernetes/kubernetes/blob/master/docs/design/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": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "template": { - "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "PodTemplate", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.PodTemplateList": { - "description": "PodTemplateList is a list of PodTemplates.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of pod templates", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec" - } - } - }, - "io.k8s.api.core.v1.PortworxVolumeSource": { - "description": "PortworxVolumeSource represents a Portworx volume resource.", - "required": [ - "volumeID" - ], - "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" - } - } - }, - "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).", - "required": [ - "weight", - "preference" - ], - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "type": "integer", - "format": "int32" - } - } - }, - "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": { - "description": "One and only one of the following should be specified. Exec specifies the action to take.", - "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "type": "integer", - "format": "int32" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.", - "type": "integer", - "format": "int32" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", - "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.core.v1.ProjectedVolumeSource": { - "description": "Represents a projected volume source", - "required": [ - "sources" - ], - "properties": { - "defaultMode": { - "description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "sources": { - "description": "list of volume projections", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeProjection" - } - } - } - }, - "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.", - "required": [ - "registry", - "volume" - ], - "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" - }, - "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" - } - } - }, - "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.", - "required": [ - "monitors", - "image" - ], - "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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - } - }, - "pool": { - "description": "The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "user": { - "description": "The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "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/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerStatus" - } - }, - "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.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.core.v1.ReplicationControllerList": { - "description": "ReplicationControllerList is a collection of replication controllers.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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)", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "template": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.core.v1.ReplicationControllerStatus": { - "description": "ReplicationControllerStatus represents the current status of a replication controller.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replication controller's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerCondition" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replication controller.", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.core.v1.ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", - "required": [ - "resource" - ], - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaSpec" - }, - "status": { - "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ResourceQuota", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ResourceQuotaList": { - "description": "ResourceQuotaList is a list of ResourceQuota items.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ResourceQuota objects. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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": { - "description": "Hard is the set of desired hard limits for each named resource. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "scopes": { - "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.core.v1.ResourceQuotaStatus": { - "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", - "properties": { - "hard": { - "description": "Hard is the set of enforced hard limits for each named resource. More info: https://git.k8s.io/community/contributors/design-proposals/admission_control_resource_quota.md", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "used": { - "description": "Used is the current observed total usage of the resource in the namespace.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - } - } - }, - "io.k8s.api.core.v1.ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", - "properties": { - "limits": { - "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - }, - "requests": { - "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-compute-resources-container/", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" - } - } - } - }, - "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" - } - } - }, - "io.k8s.api.core.v1.ScaleIOPersistentVolumeSource": { - "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", - "required": [ - "gateway", - "system", - "secretRef" - ], - "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" - }, - "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": { - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretReference" - }, - "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.", - "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" - } - } - }, - "io.k8s.api.core.v1.ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "required": [ - "gateway", - "system", - "secretRef" - ], - "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" - }, - "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": { - "description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "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.", - "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" - } - } - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "data": { - "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", - "additionalProperties": { - "type": "string", - "format": "byte" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "stringData": { - "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" - } - }, - "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" - } - } - }, - "io.k8s.api.core.v1.SecretKeySelector": { - "description": "SecretKeySelector selects a key of a Secret.", - "required": [ - "key" - ], - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or it's key must be defined", - "type": "boolean" - } - } - }, - "io.k8s.api.core.v1.SecretList": { - "description": "SecretList is a list of Secret.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - } - }, - "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" - } - } - }, - "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" - } - } - }, - "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 to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "type": "integer", - "format": "int32" - }, - "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 '..'.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - } - }, - "optional": { - "description": "Specify whether the Secret or it's 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" - } - } - }, - "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": { - "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", - "$ref": "#/definitions/io.k8s.api.core.v1.Capabilities" - }, - "privileged": { - "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem. Default is false.", - "type": "boolean" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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.", - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions" - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceSpec" - }, - "status": { - "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceStatus" - } - }, - "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/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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceAccount", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ServiceAccountList": { - "description": "ServiceAccountList is a list of ServiceAccount objects", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceAccountList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ServiceList": { - "description": "ServiceList holds a list of services.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of services", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "ServiceList", - "version": "v1" - } - ] - }, - "io.k8s.api.core.v1.ServicePort": { - "description": "ServicePort contains information on service's port.", - "required": [ - "port" - ], - "properties": { - "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. This maps to the 'Name' field in EndpointPort objects. 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=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", - "type": "integer", - "format": "int32" - }, - "port": { - "description": "The port that will be exposed by this service.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "description": "The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP.", - "type": "string" - }, - "targetPort": { - "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", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.core.v1.ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", - "properties": { - "clusterIP": { - "description": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - "type": "string" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "externalName": { - "description": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name 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. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local.", - "type": "integer", - "format": "int32" - }, - "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/configure-cloud-provider-firewall/", - "type": "array", - "items": { - "type": "string" - } - }, - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort" - }, - "x-kubernetes-patch-merge-key": "port", - "x-kubernetes-patch-strategy": "merge" - }, - "publishNotReadyAddresses": { - "description": "publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. This field will replace the service.alpha.kubernetes.io/tolerate-unready-endpoints when that annotation is deprecated and all clients have been converted to use this field.", - "type": "boolean" - }, - "selector": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "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": { - "description": "sessionAffinityConfig contains the configurations of session affinity.", - "$ref": "#/definitions/io.k8s.api.core.v1.SessionAffinityConfig" - }, - "type": { - "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"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. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer, if one is present.", - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus" - } - } - }, - "io.k8s.api.core.v1.SessionAffinityConfig": { - "description": "SessionAffinityConfig represents the configurations of session affinity.", - "properties": { - "clientIP": { - "description": "clientIP contains the configurations of Client IP based session affinity.", - "$ref": "#/definitions/io.k8s.api.core.v1.ClientIPConfig" - } - } - }, - "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": { - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "volumeName": { - "description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - } - }, - "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": { - "description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "volumeName": { - "description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - } - }, - "io.k8s.api.core.v1.TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", - "required": [ - "port" - ], - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "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.", - "required": [ - "key", - "effect" - ], - "properties": { - "effect": { - "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Required. The taint key to be applied to a node.", - "type": "string" - }, - "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "value": { - "description": "Required. The taint value corresponding to the taint key.", - "type": "string" - } - } - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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" - } - } - }, - "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.", - "required": [ - "name" - ], - "properties": { - "awsElasticBlockStore": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource" - }, - "azureFile": { - "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.AzureFileVolumeSource" - }, - "cephfs": { - "description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/io.k8s.api.core.v1.CephFSVolumeSource" - }, - "cinder": { - "description": "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.CinderVolumeSource" - }, - "configMap": { - "description": "ConfigMap represents a configMap that should populate this volume", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapVolumeSource" - }, - "downwardAPI": { - "description": "DownwardAPI represents downward API about the pod that should populate this volume", - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeSource" - }, - "emptyDir": { - "description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "$ref": "#/definitions/io.k8s.api.core.v1.EmptyDirVolumeSource" - }, - "fc": { - "description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource" - }, - "flexVolume": { - "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.", - "$ref": "#/definitions/io.k8s.api.core.v1.FlexVolumeSource" - }, - "flocker": { - "description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource" - }, - "gcePersistentDisk": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource" - }, - "gitRepo": { - "description": "GitRepo represents a git repository at a particular revision.", - "$ref": "#/definitions/io.k8s.api.core.v1.GitRepoVolumeSource" - }, - "glusterfs": { - "description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsVolumeSource" - }, - "hostPath": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource" - }, - "iscsi": { - "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://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIVolumeSource" - }, - "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": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource" - }, - "persistentVolumeClaim": { - "description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource" - }, - "photonPersistentDisk": { - "description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource" - }, - "projected": { - "description": "Items for all in one resources secrets, configmaps, and downward API", - "$ref": "#/definitions/io.k8s.api.core.v1.ProjectedVolumeSource" - }, - "quobyte": { - "description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource" - }, - "rbd": { - "description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md", - "$ref": "#/definitions/io.k8s.api.core.v1.RBDVolumeSource" - }, - "scaleIO": { - "description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOVolumeSource" - }, - "secret": { - "description": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretVolumeSource" - }, - "storageos": { - "description": "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSVolumeSource" - }, - "vsphereVolume": { - "description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource" - } - } - }, - "io.k8s.api.core.v1.VolumeMount": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "required": [ - "name", - "mountPath" - ], - "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, MountPropagationHostToContainer is used. This field is alpha in 1.8 and can be reworked or removed in a future release.", - "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" - } - } - }, - "io.k8s.api.core.v1.VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "properties": { - "configMap": { - "description": "information about the configMap data to project", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapProjection" - }, - "downwardAPI": { - "description": "information about the downwardAPI data to project", - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIProjection" - }, - "secret": { - "description": "information about the secret data to project", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretProjection" - } - } - }, - "io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource": { - "description": "Represents a vSphere volume resource.", - "required": [ - "volumePath" - ], - "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" - } - } - }, - "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)", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.extensions.v1beta1.AllowedHostPath": { - "description": "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": "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" - } - } - }, - "io.k8s.api.extensions.v1beta1.DaemonSet": { - "description": "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DaemonSet", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.DaemonSetList": { - "description": "DaemonSetList is a collection of daemon sets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "A list of daemon sets.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DaemonSetList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.DaemonSetSpec": { - "description": "DaemonSetSpec is the specification of a daemon set.", - "required": [ - "template" - ], - "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).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - }, - "templateGeneration": { - "description": "DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.", - "type": "integer", - "format": "int64" - }, - "updateStrategy": { - "description": "An update strategy to replace existing DaemonSet pods with new pods.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetUpdateStrategy" - } - } - }, - "io.k8s.api.extensions.v1beta1.DaemonSetStatus": { - "description": "DaemonSetStatus represents the current status of a daemon set.", - "required": [ - "currentNumberScheduled", - "numberMisscheduled", - "desiredNumberScheduled", - "numberReady" - ], - "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.", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "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/", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "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)", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "The most recent generation observed by the daemon set controller.", - "type": "integer", - "format": "int64" - }, - "updatedNumberScheduled": { - "description": "The total number of nodes that are running updated daemon pod", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.extensions.v1beta1.DaemonSetUpdateStrategy": { - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if type = \"RollingUpdate\".", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollingUpdateDaemonSet" - }, - "type": { - "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.", - "type": "string" - } - } - }, - "io.k8s.api.extensions.v1beta1.Deployment": { - "description": "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the Deployment.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentSpec" - }, - "status": { - "description": "Most recently observed status of the Deployment.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "Deployment", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.DeploymentCondition": { - "description": "DeploymentCondition describes the state of a deployment at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "lastUpdateTime": { - "description": "The last time this condition was updated.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.extensions.v1beta1.DeploymentList": { - "description": "DeploymentList is a list of Deployments.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Deployments.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DeploymentList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.DeploymentRollback": { - "description": "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.", - "required": [ - "name", - "rollbackTo" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "Required: This must match the Name of a deployment.", - "type": "string" - }, - "rollbackTo": { - "description": "The config of this deployment rollback.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollbackConfig" - }, - "updatedAnnotations": { - "description": "The annotations to be updated to a deployment", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "DeploymentRollback", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.DeploymentSpec": { - "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", - "required": [ - "template" - ], - "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)", - "type": "integer", - "format": "int32" - }, - "paused": { - "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "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. This is not set by default.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "type": "integer", - "format": "int32" - }, - "revisionHistoryLimit": { - "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified.", - "type": "integer", - "format": "int32" - }, - "rollbackTo": { - "description": "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollbackConfig" - }, - "selector": { - "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "strategy": { - "description": "The deployment strategy to use to replace existing pods with new ones.", - "x-kubernetes-patch-strategy": "retainKeys", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStrategy" - }, - "template": { - "description": "Template describes the pods that will be created.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.extensions.v1beta1.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.", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a deployment's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "observedGeneration": { - "description": "The generation observed by the deployment controller.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "Total number of ready pods targeted by this deployment.", - "type": "integer", - "format": "int32" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "type": "integer", - "format": "int32" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.extensions.v1beta1.DeploymentStrategy": { - "description": "DeploymentStrategy describes how to replace existing pods with new ones.", - "properties": { - "rollingUpdate": { - "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollingUpdateDeployment" - }, - "type": { - "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "type": "string" - } - } - }, - "io.k8s.api.extensions.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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - } - }, - "io.k8s.api.extensions.v1beta1.HTTPIngressPath": { - "description": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "required": [ - "backend" - ], - "properties": { - "backend": { - "description": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressBackend" - }, - "path": { - "description": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) 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 '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", - "type": "string" - } - } - }, - "io.k8s.api.extensions.v1beta1.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 '#'.", - "required": [ - "paths" - ], - "properties": { - "paths": { - "description": "A collection of paths that map requests to backends.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.HTTPIngressPath" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.HostPortRange": { - "description": "Host Port Range 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.", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "type": "integer", - "format": "int32" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.extensions.v1beta1.IDRange": { - "description": "ID Range provides a min/max of an allowed range of IDs.", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "description": "Max is the end of the range, inclusive.", - "type": "integer", - "format": "int64" - }, - "min": { - "description": "Min is the start of the range, inclusive.", - "type": "integer", - "format": "int64" - } - } - }, - "io.k8s.api.extensions.v1beta1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") 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.", - "required": [ - "cidr" - ], - "properties": { - "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"", - "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\" Except values will be rejected if they are outside the CIDR range", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressSpec" - }, - "status": { - "description": "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "Ingress", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "required": [ - "serviceName", - "servicePort" - ], - "properties": { - "serviceName": { - "description": "Specifies the name of the referenced service.", - "type": "string" - }, - "servicePort": { - "description": "Specifies the port of the referenced service.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.extensions.v1beta1.IngressList": { - "description": "IngressList is a collection of Ingress.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of Ingress.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "IngressList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.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 the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t 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.", - "type": "string" - }, - "http": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.HTTPIngressRuleValue" - } - } - }, - "io.k8s.api.extensions.v1beta1.IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", - "properties": { - "backend": { - "description": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressBackend" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressRule" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressTLS" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", - "properties": { - "loadBalancer": { - "description": "LoadBalancer contains the current status of the load-balancer.", - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus" - } - } - }, - "io.k8s.api.extensions.v1beta1.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.", - "type": "array", - "items": { - "type": "string" - } - }, - "secretName": { - "description": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL 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" - } - } - }, - "io.k8s.api.extensions.v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "NetworkPolicy", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyPort" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyPeer" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.NetworkPolicyIngressRule": { - "description": "This NetworkPolicyIngressRule matches traffic if and only if the traffic matches 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 on item, this rule allows traffic only if the traffic matches at least one item in the from list.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyPeer" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyPort" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.NetworkPolicyList": { - "description": "Network Policy List is a list of NetworkPolicy objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "NetworkPolicyList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.NetworkPolicyPeer": { - "properties": { - "ipBlock": { - "description": "IPBlock defines policy on a particular IPBlock", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IPBlock" - }, - "namespaceSelector": { - "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "podSelector": { - "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - } - } - }, - "io.k8s.api.extensions.v1beta1.NetworkPolicyPort": { - "properties": { - "port": { - "description": "If specified, 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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "protocol": { - "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", - "type": "string" - } - } - }, - "io.k8s.api.extensions.v1beta1.NetworkPolicySpec": { - "required": [ - "podSelector" - ], - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyEgressRule" - } - }, - "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 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).", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyIngressRule" - } - }, - "podSelector": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "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", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.PodSecurityPolicy": { - "description": "Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "spec defines the policy enforced.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicySpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.PodSecurityPolicyList": { - "description": "Pod Security Policy List is a list of PodSecurityPolicy objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "PodSecurityPolicyList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.PodSecurityPolicySpec": { - "description": "Pod Security Policy Spec defines the policy enforced.", - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "allowedHostPaths": { - "description": "is a white list of allowed host paths. Empty indicates that all host paths may be used.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.AllowedHostPath" - } - }, - "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 capabiility in both DefaultAddCapabilities and RequiredDropCapabilities.", - "type": "array", - "items": { - "type": "string" - } - }, - "defaultAllowPrivilegeEscalation": { - "description": "DefaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "type": "boolean" - }, - "fsGroup": { - "description": "FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.FSGroupStrategyOptions" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.HostPortRange" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "runAsUser": { - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RunAsUserStrategyOptions" - }, - "seLinux": { - "description": "seLinux is the strategy that will dictate the allowable labels that may be set.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.SELinuxStrategyOptions" - }, - "supplementalGroups": { - "description": "SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.SupplementalGroupsStrategyOptions" - }, - "volumes": { - "description": "volumes is a white list of allowed volume plugins. Empty indicates that all plugins may be used.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.extensions.v1beta1.ReplicaSet": { - "description": "DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet represents the configuration of a ReplicaSet.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "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/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetSpec" - }, - "status": { - "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/api-conventions.md#spec-and-status", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "ReplicaSet", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.ReplicaSetCondition": { - "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.api.extensions.v1beta1.ReplicaSetList": { - "description": "ReplicaSetList is a collection of ReplicaSets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "ReplicaSetList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.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)", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "Selector is a label query over pods that should match the replica count. If the 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 replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "template": { - "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", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - } - } - }, - "io.k8s.api.extensions.v1beta1.ReplicaSetStatus": { - "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "required": [ - "replicas" - ], - "properties": { - "availableReplicas": { - "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "type": "integer", - "format": "int32" - }, - "conditions": { - "description": "Represents the latest available observations of a replica set's current state.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetCondition" - }, - "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.", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "type": "integer", - "format": "int64" - }, - "readyReplicas": { - "description": "The number of ready replicas for this replica set.", - "type": "integer", - "format": "int32" - }, - "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", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.extensions.v1beta1.RollbackConfig": { - "description": "DEPRECATED.", - "properties": { - "revision": { - "description": "The revision to rollback to. If set to 0, rollback to the last revision.", - "type": "integer", - "format": "int64" - } - } - }, - "io.k8s.api.extensions.v1beta1.RollingUpdateDaemonSet": { - "description": "Spec to control the desired behavior of daemon set rolling update.", - "properties": { - "maxUnavailable": { - "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. 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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.extensions.v1beta1.RollingUpdateDeployment": { - "description": "Spec to control the desired behavior of rolling update.", - "properties": { - "maxSurge": { - "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. By default, a value of 1 is used. Example: when this is set to 30%, the new RC 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 RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "maxUnavailable": { - "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. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - } - } - }, - "io.k8s.api.extensions.v1beta1.RunAsUserStrategyOptions": { - "description": "Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "ranges": { - "description": "Ranges are the allowed ranges of uids that may be used.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - } - }, - "io.k8s.api.extensions.v1beta1.SELinuxStrategyOptions": { - "description": "SELinux Strategy Options defines the strategy type and any options used to create the strategy.", - "required": [ - "rule" - ], - "properties": { - "rule": { - "description": "type is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md", - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions" - } - } - }, - "io.k8s.api.extensions.v1beta1.Scale": { - "description": "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ScaleSpec" - }, - "status": { - "description": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ScaleStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "extensions", - "kind": "Scale", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.extensions.v1beta1.ScaleSpec": { - "description": "describes the attributes of a scale subresource", - "properties": { - "replicas": { - "description": "desired number of instances for the scaled object.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.api.extensions.v1beta1.ScaleStatus": { - "description": "represents the current status of a scale subresource.", - "required": [ - "replicas" - ], - "properties": { - "replicas": { - "description": "actual number of observed instances of the scaled object.", - "type": "integer", - "format": "int32" - }, - "selector": { - "description": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "targetSelector": { - "description": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "type": "string" - } - } - }, - "io.k8s.api.extensions.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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IDRange" - } - }, - "rule": { - "description": "Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - } - }, - "io.k8s.api.networking.v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") 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.", - "required": [ - "cidr" - ], - "properties": { - "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"", - "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\" Except values will be rejected if they are outside the CIDR range", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior for this NetworkPolicy.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicySpec" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" - } - } - } - }, - "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 on item, this rule allows traffic only if the traffic matches at least one item in the from list.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" - } - } - } - }, - "io.k8s.api.networking.v1.NetworkPolicyList": { - "description": "NetworkPolicyList is a list of NetworkPolicy objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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 from. Exactly one of its fields must be specified.", - "properties": { - "ipBlock": { - "description": "IPBlock defines policy on a particular IPBlock", - "$ref": "#/definitions/io.k8s.api.networking.v1.IPBlock" - }, - "namespaceSelector": { - "description": "Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "podSelector": { - "description": "This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - } - } - }, - "io.k8s.api.networking.v1.NetworkPolicyPort": { - "description": "NetworkPolicyPort describes a port to allow traffic on", - "properties": { - "port": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "protocol": { - "description": "The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", - "type": "string" - } - } - }, - "io.k8s.api.networking.v1.NetworkPolicySpec": { - "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", - "required": [ - "podSelector" - ], - "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", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyEgressRule" - } - }, - "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)", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyIngressRule" - } - }, - "podSelector": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "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", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.policy.v1beta1.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/api-conventions.md#resources", - "type": "string" - }, - "deleteOptions": { - "description": "DeleteOptions may be provided", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "ObjectMeta describes the pod that is being evicted.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "Eviction", - "version": "v1beta1" - } - ] - }, - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Specification of the desired behavior of the PodDisruptionBudget.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec" - }, - "status": { - "description": "Most recently observed status of the PodDisruptionBudget.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.policy.v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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": { - "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\".", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "minAvailable": { - "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%\".", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" - }, - "selector": { - "description": "Label query over pods whose evictions are managed by the disruption budget.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - } - } - }, - "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.", - "required": [ - "disruptedPods", - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], - "properties": { - "currentHealthy": { - "description": "current number of healthy pods", - "type": "integer", - "format": "int32" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "type": "integer", - "format": "int32" - }, - "disruptedPods": { - "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", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - } - }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "type": "integer", - "format": "int32" - }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "type": "integer", - "format": "int32" - }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", - "type": "integer", - "format": "int64" - } - } - }, - "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.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" - } - } - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" - } - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.PolicyRule" - } - } - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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.", - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Subject" - } - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "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.", - "required": [ - "kind", - "name" - ], - "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" - } - } - }, - "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.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.PolicyRule" - } - } - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Subject" - } - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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 This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. 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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.PolicyRule" - } - } - }, - "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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Subject" - } - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "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", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "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.", - "required": [ - "kind", - "name" - ], - "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" - } - } - }, - "io.k8s.api.rbac.v1beta1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "roleRef": { - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.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.", - "required": [ - "verbs" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "type": "array", - "items": { - "type": "string" - } - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "io.k8s.api.rbac.v1beta1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "required": [ - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.PolicyRule" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.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.", - "required": [ - "subjects", - "roleRef" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleRef" - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Subject" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.RoleBindingList": { - "description": "RoleBindingList is a collection of RoleBindings", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of RoleBindings", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBindingList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.RoleList": { - "description": "RoleList is a collection of Roles", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of Roles", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.rbac.v1beta1.RoleRef": { - "description": "RoleRef contains information that points to the role being used", - "required": [ - "apiGroup", - "kind", - "name" - ], - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - } - }, - "io.k8s.api.rbac.v1beta1.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.", - "required": [ - "kind", - "name" - ], - "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" - } - } - }, - "io.k8s.api.scheduling.v1alpha1.PriorityClass": { - "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "required": [ - "value" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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.", - "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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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.", - "type": "integer", - "format": "int32" - } - }, - "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.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of PriorityClasses", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.scheduling.v1alpha1.PriorityClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "scheduling.k8s.io", - "kind": "PriorityClassList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.settings.v1alpha1.PodPreset": { - "description": "PodPreset is a policy resource that defines additional runtime requirements for a 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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPresetSpec" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "settings.k8s.io", - "kind": "PodPreset", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.settings.v1alpha1.PodPresetList": { - "description": "PodPresetList is a list of PodPreset objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of schema objects.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "settings.k8s.io", - "kind": "PodPresetList", - "version": "v1alpha1" - } - ] - }, - "io.k8s.api.settings.v1alpha1.PodPresetSpec": { - "description": "PodPresetSpec is a description of a pod preset.", - "properties": { - "env": { - "description": "Env defines the collection of EnvVar to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" - } - }, - "envFrom": { - "description": "EnvFrom defines the collection of EnvFromSource to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" - } - }, - "selector": { - "description": "Selector is a label query over a set of resources, in this case pods. Required.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" - }, - "volumeMounts": { - "description": "VolumeMounts defines the collection of VolumeMount to inject into containers.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" - } - }, - "volumes": { - "description": "Volumes defines the collection of Volume to inject into the pod.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.core.v1.Volume" - } - } - } - }, - "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.", - "required": [ - "provisioner" - ], - "properties": { - "allowVolumeExpansion": { - "description": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "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" - } - }, - "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.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1" - } - ] - }, - "io.k8s.api.storage.v1beta1.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.", - "required": [ - "provisioner" - ], - "properties": { - "allowVolumeExpansion": { - "description": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "parameters": { - "description": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "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" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClass", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.storage.v1beta1.StorageClassList": { - "description": "StorageClassList is a collection of storage classes.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is the list of StorageClasses", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "storage.k8s.io", - "kind": "StorageClassList", - "version": "v1beta1" - } - ] - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec describes how the user wants the resources to appear", - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec" - }, - "status": { - "description": "Status indicates the actual state of the CustomResourceDefinition", - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition": { - "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList": { - "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items individual CustomResourceDefinitions", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames": { - "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", - "required": [ - "plural", - "kind" - ], - "properties": { - "kind": { - "description": "Kind is the serialized kind of the resource. It is normally CamelCase and singular.", - "type": "string" - }, - "listKind": { - "description": "ListKind is the serialized kind of the list for this resource. Defaults to List.", - "type": "string" - }, - "plural": { - "description": "Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.", - "type": "string" - }, - "shortNames": { - "description": "ShortNames are short names for the resource. It must be all lowercase.", - "type": "array", - "items": { - "type": "string" - } - }, - "singular": { - "description": "Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased ", - "type": "string" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec": { - "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", - "required": [ - "group", - "version", - "names", - "scope" - ], - "properties": { - "group": { - "description": "Group is the group this resource belongs in", - "type": "string" - }, - "names": { - "description": "Names are the names used to describe this custom resource", - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames" - }, - "scope": { - "description": "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced", - "type": "string" - }, - "validation": { - "description": "Validation describes the validation methods for CustomResources This field is alpha-level and should only be sent to servers that enable the CustomResourceValidation feature.", - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation" - }, - "version": { - "description": "Version is the version this resource belongs in", - "type": "string" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus": { - "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", - "required": [ - "conditions", - "acceptedNames" - ], - "properties": { - "acceptedNames": { - "description": "AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec.", - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames" - }, - "conditions": { - "description": "Conditions indicate state for particular aspects of a CustomResourceDefinition", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition" - } - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation": { - "description": "CustomResourceValidation is a list of validation methods for CustomResources.", - "properties": { - "openAPIV3Schema": { - "description": "OpenAPIV3Schema is the OpenAPI v3 schema to be validated against.", - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation": { - "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "type": "string", - "format": "byte" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.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.v1beta1.JSONSchemaPropsOrBool" - }, - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool" - }, - "allOf": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "anyOf": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "default": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON" - }, - "definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray" - } - }, - "description": { - "type": "string" - }, - "enum": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON" - } - }, - "example": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSON" - }, - "exclusiveMaximum": { - "type": "boolean" - }, - "exclusiveMinimum": { - "type": "boolean" - }, - "externalDocs": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation" - }, - "format": { - "type": "string" - }, - "id": { - "type": "string" - }, - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray" - }, - "maxItems": { - "type": "integer", - "format": "int64" - }, - "maxLength": { - "type": "integer", - "format": "int64" - }, - "maxProperties": { - "type": "integer", - "format": "int64" - }, - "maximum": { - "type": "number", - "format": "double" - }, - "minItems": { - "type": "integer", - "format": "int64" - }, - "minLength": { - "type": "integer", - "format": "int64" - }, - "minProperties": { - "type": "integer", - "format": "int64" - }, - "minimum": { - "type": "number", - "format": "double" - }, - "multipleOf": { - "type": "number", - "format": "double" - }, - "not": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - }, - "oneOf": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "pattern": { - "type": "string" - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "required": { - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "uniqueItems": { - "type": "boolean" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray": { - "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", - "required": [ - "Schema", - "JSONSchemas" - ], - "properties": { - "JSONSchemas": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - }, - "Schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool": { - "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", - "required": [ - "Allows", - "Schema" - ], - "properties": { - "Allows": { - "type": "boolean" - }, - "Schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - } - }, - "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray": { - "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", - "required": [ - "Schema", - "Property" - ], - "properties": { - "Property": { - "type": "array", - "items": { - "type": "string" - } - }, - "Schema": { - "$ref": "#/definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps" - } - } - }, - "io.k8s.apimachinery.pkg.api.resource.Quantity": { - "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.", - "required": [ - "name", - "versions", - "serverAddressByClientCIDRs" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "name": { - "description": "name is the name of the group.", - "type": "string" - }, - "preferredVersion": { - "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the versions supported in this group.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" - } - } - }, - "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.", - "required": [ - "groups" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", - "type": "string" - }, - "groups": { - "description": "groups is a list of APIGroup.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - } - }, - "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.", - "required": [ - "name", - "singularName", - "namespaced", - "kind", - "verbs" - ], - "properties": { - "categories": { - "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", - "type": "array", - "items": { - "type": "string" - } - }, - "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.", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - }, - "verbs": { - "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - }, - "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.", - "required": [ - "groupVersion", - "resources" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/api-conventions.md#types-kinds", - "type": "string" - }, - "resources": { - "description": "resources contains the name of the resources and if they are namespaced.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" - } - } - }, - "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.", - "required": [ - "versions", - "serverAddressByClientCIDRs" - ], - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/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/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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" - } - }, - "versions": { - "description": "versions are the api versions that are available.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "APIVersions", - "version": "v1" - } - ] - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/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": { - "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions" - }, - "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.", - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "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": "batch", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "batch", - "kind": "DeleteOptions", - "version": "v2alpha1" - }, - { - "group": "certificates.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "federation", - "kind": "DeleteOptions", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "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": "v1alpha1" - }, - { - "group": "settings.k8s.io", - "kind": "DeleteOptions", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1" - }, - { - "group": "storage.k8s.io", - "kind": "DeleteOptions", - "version": "v1beta1" - } - ] - }, - "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.", - "required": [ - "groupVersion", - "version" - ], - "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" - } - } - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Initializer": { - "description": "Initializer is information about an initializer that has not yet completed.", - "required": [ - "name" - ], - "properties": { - "name": { - "description": "name of the process that is responsible for initializing this object.", - "type": "string" - } - } - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Initializers": { - "description": "Initializers tracks the progress of initialization.", - "required": [ - "pending" - ], - "properties": { - "pending": { - "description": "Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Initializer" - }, - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge" - }, - "result": { - "description": "If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" - } - }, - "matchLabels": { - "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", - "additionalProperties": { - "type": "string" - } - } - } - }, - "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.", - "required": [ - "key", - "operator" - ], - "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.", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "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 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.", - "type": "string" - }, - "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/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "selfLink is a URL representing this object. Populated by the system. Read-only.", - "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": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "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": { - "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/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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.", - "type": "integer", - "format": "int64" - }, - "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 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/api-conventions.md#metadata", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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.", - "type": "array", - "items": { - "type": "string" - }, - "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/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.", - "type": "integer", - "format": "int64" - }, - "initializers": { - "description": "An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects.\n\nWhen an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Initializers" - }, - "labels": { - "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", - "additionalProperties": { - "type": "string" - } - }, - "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 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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" - }, - "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/api-conventions.md#concurrency-control-and-consistency", - "type": "string" - }, - "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.", - "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" - } - } - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.", - "required": [ - "apiVersion", - "kind", - "name", - "uid" - ], - "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/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" - } - } - }, - "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." - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": { - "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "properties": { - "uid": { - "description": "Specifies the target UID.", - "type": "string" - } - } - }, - "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.", - "required": [ - "clientCIDR", - "serverAddress" - ], - "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" - } - } - }, - "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/api-conventions.md#resources", - "type": "string" - }, - "code": { - "description": "Suggested HTTP return code for this status, 0 if not set.", - "type": "integer", - "format": "int32" - }, - "details": { - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "message": { - "description": "A human-readable description of the status of this operation.", - "type": "string" - }, - "metadata": { - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - }, - "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/api-conventions.md#spec-and-status", - "type": "string" - } - }, - "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" - } - } - }, - "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.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" - } - }, - "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/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.", - "type": "integer", - "format": "int32" - }, - "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" - } - } - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { - "type": "string", - "format": "date-time" - }, - "io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent": { - "description": "Event represents a single event to a watched resource.", - "required": [ - "type", - "object" - ], - "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.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" - }, - "type": { - "type": "string" - } - }, - "x-kubernetes-group-version-kind": [ - { - "group": "", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "admission.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "admissionregistration.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "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": "batch", - "kind": "WatchEvent", - "version": "v1" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "batch", - "kind": "WatchEvent", - "version": "v2alpha1" - }, - { - "group": "certificates.k8s.io", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "extensions", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "federation", - "kind": "WatchEvent", - "version": "v1beta1" - }, - { - "group": "imagepolicy.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "networking.k8s.io", - "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": "v1alpha1" - }, - { - "group": "settings.k8s.io", - "kind": "WatchEvent", - "version": "v1alpha1" - }, - { - "group": "storage.k8s.io", - "kind": "WatchEvent", - "version": "v1" - }, - { - "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.)", - "required": [ - "Raw" - ], - "properties": { - "Raw": { - "description": "Raw is the underlying serialization of this object.", - "type": "string", - "format": "byte" - } - } - }, - "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { - "type": "string", - "format": "int-or-string" - }, - "io.k8s.apimachinery.pkg.version.Info": { - "description": "Info contains versioning information. how we'll want to distribute that information.", - "required": [ - "major", - "minor", - "gitVersion", - "gitCommit", - "gitTreeState", - "buildDate", - "goVersion", - "compiler", - "platform" - ], - "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" - } - } - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.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/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/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" - }, - "spec": { - "description": "Spec contains information for locating and communicating with a server", - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceSpec" - }, - "status": { - "description": "Status contains derived information about an API server", - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceStatus" - } - } - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceCondition": { - "required": [ - "type", - "status" - ], - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" - }, - "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" - } - } - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceList": { - "description": "APIServiceList is a list of APIService objects.", - "required": [ - "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/api-conventions.md#resources", - "type": "string" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" - } - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" - } - } - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceSpec": { - "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", - "required": [ - "service", - "caBundle", - "groupPriorityMinimum", - "versionPriority" - ], - "properties": { - "caBundle": { - "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.", - "type": "string", - "format": "byte" - }, - "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 prefered 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", - "type": "integer", - "format": "int32" - }, - "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": { - "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.", - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.ServiceReference" - }, - "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). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) Since it's inside of a group, the number can be small, probably in the 10s.", - "type": "integer", - "format": "int32" - } - } - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceStatus": { - "description": "APIServiceStatus contains derived information about an API server", - "properties": { - "conditions": { - "description": "Current service state of apiService.", - "type": "array", - "items": { - "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceCondition" - }, - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - } - } - }, - "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.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" - } - } - }, - "io.k8s.kubernetes.pkg.api.v1.AWSElasticBlockStoreVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Affinity": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Affinity instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Affinity" - }, - "io.k8s.kubernetes.pkg.api.v1.AttachedVolume": { - "description": "Deprecated. Please use io.k8s.api.core.v1.AttachedVolume instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.AttachedVolume" - }, - "io.k8s.kubernetes.pkg.api.v1.AzureDiskVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.AzureDiskVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.AzureDiskVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.AzureFileVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.AzureFileVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.AzureFileVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Binding": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Binding instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Binding" - }, - "io.k8s.kubernetes.pkg.api.v1.Capabilities": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Capabilities instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Capabilities" - }, - "io.k8s.kubernetes.pkg.api.v1.CephFSVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.CephFSVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.CephFSVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.CinderVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.CinderVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.CinderVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.ComponentCondition": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ComponentCondition instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentCondition" - }, - "io.k8s.kubernetes.pkg.api.v1.ComponentStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ComponentStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.ComponentStatusList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ComponentStatusList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ComponentStatusList" - }, - "io.k8s.kubernetes.pkg.api.v1.ConfigMap": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMap instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap" - }, - "io.k8s.kubernetes.pkg.api.v1.ConfigMapEnvSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMapEnvSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource" - }, - "io.k8s.kubernetes.pkg.api.v1.ConfigMapKeySelector": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMapKeySelector instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector" - }, - "io.k8s.kubernetes.pkg.api.v1.ConfigMapList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMapList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapList" - }, - "io.k8s.kubernetes.pkg.api.v1.ConfigMapProjection": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMapProjection instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapProjection" - }, - "io.k8s.kubernetes.pkg.api.v1.ConfigMapVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMapVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Container": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Container instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Container" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerImage": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerImage instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerImage" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerPort": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerPort instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerState": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerState instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerState" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerStateRunning": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerStateRunning instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateRunning" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerStateTerminated": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerStateTerminated instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateTerminated" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerStateWaiting": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerStateWaiting instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStateWaiting" - }, - "io.k8s.kubernetes.pkg.api.v1.ContainerStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ContainerStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ContainerStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.DaemonEndpoint": { - "description": "Deprecated. Please use io.k8s.api.core.v1.DaemonEndpoint instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.DaemonEndpoint" - }, - "io.k8s.kubernetes.pkg.api.v1.DownwardAPIProjection": { - "description": "Deprecated. Please use io.k8s.api.core.v1.DownwardAPIProjection instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIProjection" - }, - "io.k8s.kubernetes.pkg.api.v1.DownwardAPIVolumeFile": { - "description": "Deprecated. Please use io.k8s.api.core.v1.DownwardAPIVolumeFile instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeFile" - }, - "io.k8s.kubernetes.pkg.api.v1.DownwardAPIVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.DownwardAPIVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.DownwardAPIVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.EmptyDirVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EmptyDirVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EmptyDirVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.EndpointAddress": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EndpointAddress instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointAddress" - }, - "io.k8s.kubernetes.pkg.api.v1.EndpointPort": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EndpointPort instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointPort" - }, - "io.k8s.kubernetes.pkg.api.v1.EndpointSubset": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EndpointSubset instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointSubset" - }, - "io.k8s.kubernetes.pkg.api.v1.Endpoints": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Endpoints instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Endpoints" - }, - "io.k8s.kubernetes.pkg.api.v1.EndpointsList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EndpointsList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EndpointsList" - }, - "io.k8s.kubernetes.pkg.api.v1.EnvFromSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EnvFromSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" - }, - "io.k8s.kubernetes.pkg.api.v1.EnvVar": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EnvVar instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" - }, - "io.k8s.kubernetes.pkg.api.v1.EnvVarSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EnvVarSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Event": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Event instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Event" - }, - "io.k8s.kubernetes.pkg.api.v1.EventList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EventList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EventList" - }, - "io.k8s.kubernetes.pkg.api.v1.EventSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.EventSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.EventSource" - }, - "io.k8s.kubernetes.pkg.api.v1.ExecAction": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ExecAction instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction" - }, - "io.k8s.kubernetes.pkg.api.v1.FCVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.FCVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.FCVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.FlexVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.FlexVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.FlexVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.FlockerVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.FlockerVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.FlockerVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.GCEPersistentDiskVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.GCEPersistentDiskVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.GitRepoVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.GitRepoVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.GitRepoVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.GlusterfsVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.GlusterfsVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.GlusterfsVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.HTTPGetAction": { - "description": "Deprecated. Please use io.k8s.api.core.v1.HTTPGetAction instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction" - }, - "io.k8s.kubernetes.pkg.api.v1.HTTPHeader": { - "description": "Deprecated. Please use io.k8s.api.core.v1.HTTPHeader instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" - }, - "io.k8s.kubernetes.pkg.api.v1.Handler": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Handler instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Handler" - }, - "io.k8s.kubernetes.pkg.api.v1.HostAlias": { - "description": "Deprecated. Please use io.k8s.api.core.v1.HostAlias instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.HostAlias" - }, - "io.k8s.kubernetes.pkg.api.v1.HostPathVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.HostPathVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.HostPathVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.ISCSIVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ISCSIVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ISCSIVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.KeyToPath": { - "description": "Deprecated. Please use io.k8s.api.core.v1.KeyToPath instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" - }, - "io.k8s.kubernetes.pkg.api.v1.Lifecycle": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Lifecycle instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle" - }, - "io.k8s.kubernetes.pkg.api.v1.LimitRange": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LimitRange instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRange" - }, - "io.k8s.kubernetes.pkg.api.v1.LimitRangeItem": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LimitRangeItem instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeItem" - }, - "io.k8s.kubernetes.pkg.api.v1.LimitRangeList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LimitRangeList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeList" - }, - "io.k8s.kubernetes.pkg.api.v1.LimitRangeSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LimitRangeSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LimitRangeSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.LoadBalancerIngress": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LoadBalancerIngress instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerIngress" - }, - "io.k8s.kubernetes.pkg.api.v1.LoadBalancerStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LoadBalancerStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.LocalObjectReference": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LocalObjectReference instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" - }, - "io.k8s.kubernetes.pkg.api.v1.LocalVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.LocalVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.LocalVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.NFSVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NFSVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NFSVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Namespace": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Namespace instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Namespace" - }, - "io.k8s.kubernetes.pkg.api.v1.NamespaceList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NamespaceList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceList" - }, - "io.k8s.kubernetes.pkg.api.v1.NamespaceSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NamespaceSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.NamespaceStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NamespaceStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NamespaceStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.Node": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Node instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Node" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeAddress": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeAddress instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAddress" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeAffinity": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeAffinity instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeCondition": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeCondition instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeCondition" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeDaemonEndpoints": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeDaemonEndpoints instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeDaemonEndpoints" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeList" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeSelector": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeSelector instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeSelectorRequirement": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeSelectorRequirement instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeSelectorTerm": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeSelectorTerm instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.NodeSystemInfo": { - "description": "Deprecated. Please use io.k8s.api.core.v1.NodeSystemInfo instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.NodeSystemInfo" - }, - "io.k8s.kubernetes.pkg.api.v1.ObjectFieldSelector": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ObjectFieldSelector instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector" - }, - "io.k8s.kubernetes.pkg.api.v1.ObjectReference": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ObjectReference instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolume": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolume instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolume" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeClaim": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeClaim instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaim" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeClaimList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeClaimList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimList" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeClaimSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeClaimSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeClaimStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeClaimStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeClaimVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeList" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.PersistentVolumeStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PersistentVolumeStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PersistentVolumeStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.PhotonPersistentDiskVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Pod": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Pod instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Pod" - }, - "io.k8s.kubernetes.pkg.api.v1.PodAffinity": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodAffinity instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity" - }, - "io.k8s.kubernetes.pkg.api.v1.PodAffinityTerm": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodAffinityTerm instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" - }, - "io.k8s.kubernetes.pkg.api.v1.PodAntiAffinity": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodAntiAffinity instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity" - }, - "io.k8s.kubernetes.pkg.api.v1.PodCondition": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodCondition instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodCondition" - }, - "io.k8s.kubernetes.pkg.api.v1.PodList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodList" - }, - "io.k8s.kubernetes.pkg.api.v1.PodSecurityContext": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodSecurityContext instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext" - }, - "io.k8s.kubernetes.pkg.api.v1.PodSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.PodStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.PodTemplate": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodTemplate instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplate" - }, - "io.k8s.kubernetes.pkg.api.v1.PodTemplateList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodTemplateList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateList" - }, - "io.k8s.kubernetes.pkg.api.v1.PodTemplateSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PodTemplateSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.PortworxVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PortworxVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PortworxVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.PreferredSchedulingTerm": { - "description": "Deprecated. Please use io.k8s.api.core.v1.PreferredSchedulingTerm instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" - }, - "io.k8s.kubernetes.pkg.api.v1.Probe": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Probe instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Probe" - }, - "io.k8s.kubernetes.pkg.api.v1.ProjectedVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ProjectedVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ProjectedVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.QuobyteVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.QuobyteVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.QuobyteVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.RBDVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.RBDVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.RBDVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.ReplicationController": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ReplicationController instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationController" - }, - "io.k8s.kubernetes.pkg.api.v1.ReplicationControllerCondition": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ReplicationControllerCondition instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerCondition" - }, - "io.k8s.kubernetes.pkg.api.v1.ReplicationControllerList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ReplicationControllerList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerList" - }, - "io.k8s.kubernetes.pkg.api.v1.ReplicationControllerSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ReplicationControllerSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.ReplicationControllerStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ReplicationControllerStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ReplicationControllerStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.ResourceFieldSelector": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ResourceFieldSelector instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector" - }, - "io.k8s.kubernetes.pkg.api.v1.ResourceQuota": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ResourceQuota instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuota" - }, - "io.k8s.kubernetes.pkg.api.v1.ResourceQuotaList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ResourceQuotaList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaList" - }, - "io.k8s.kubernetes.pkg.api.v1.ResourceQuotaSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ResourceQuotaSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.ResourceQuotaStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ResourceQuotaStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceQuotaStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.ResourceRequirements": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ResourceRequirements instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements" - }, - "io.k8s.kubernetes.pkg.api.v1.SELinuxOptions": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SELinuxOptions instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SELinuxOptions" - }, - "io.k8s.kubernetes.pkg.api.v1.ScaleIOVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ScaleIOVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ScaleIOVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.Secret": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Secret instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Secret" - }, - "io.k8s.kubernetes.pkg.api.v1.SecretEnvSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SecretEnvSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource" - }, - "io.k8s.kubernetes.pkg.api.v1.SecretKeySelector": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SecretKeySelector instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" - }, - "io.k8s.kubernetes.pkg.api.v1.SecretList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SecretList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretList" - }, - "io.k8s.kubernetes.pkg.api.v1.SecretProjection": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SecretProjection instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretProjection" - }, - "io.k8s.kubernetes.pkg.api.v1.SecretVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SecretVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecretVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.SecurityContext": { - "description": "Deprecated. Please use io.k8s.api.core.v1.SecurityContext instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext" - }, - "io.k8s.kubernetes.pkg.api.v1.Service": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Service instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Service" - }, - "io.k8s.kubernetes.pkg.api.v1.ServiceAccount": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ServiceAccount instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccount" - }, - "io.k8s.kubernetes.pkg.api.v1.ServiceAccountList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ServiceAccountList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceAccountList" - }, - "io.k8s.kubernetes.pkg.api.v1.ServiceList": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ServiceList instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceList" - }, - "io.k8s.kubernetes.pkg.api.v1.ServicePort": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ServicePort instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ServicePort" - }, - "io.k8s.kubernetes.pkg.api.v1.ServiceSpec": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ServiceSpec instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceSpec" - }, - "io.k8s.kubernetes.pkg.api.v1.ServiceStatus": { - "description": "Deprecated. Please use io.k8s.api.core.v1.ServiceStatus instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.ServiceStatus" - }, - "io.k8s.kubernetes.pkg.api.v1.StorageOSPersistentVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.StorageOSPersistentVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSPersistentVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.StorageOSVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.StorageOSVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.StorageOSVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.TCPSocketAction": { - "description": "Deprecated. Please use io.k8s.api.core.v1.TCPSocketAction instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction" - }, - "io.k8s.kubernetes.pkg.api.v1.Taint": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Taint instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Taint" - }, - "io.k8s.kubernetes.pkg.api.v1.Toleration": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Toleration instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" - }, - "io.k8s.kubernetes.pkg.api.v1.Volume": { - "description": "Deprecated. Please use io.k8s.api.core.v1.Volume instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.Volume" - }, - "io.k8s.kubernetes.pkg.api.v1.VolumeMount": { - "description": "Deprecated. Please use io.k8s.api.core.v1.VolumeMount instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" - }, - "io.k8s.kubernetes.pkg.api.v1.VolumeProjection": { - "description": "Deprecated. Please use io.k8s.api.core.v1.VolumeProjection instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.VolumeProjection" - }, - "io.k8s.kubernetes.pkg.api.v1.VsphereVirtualDiskVolumeSource": { - "description": "Deprecated. Please use io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource" - }, - "io.k8s.kubernetes.pkg.api.v1.WeightedPodAffinityTerm": { - "description": "Deprecated. Please use io.k8s.api.core.v1.WeightedPodAffinityTerm instead.", - "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.AdmissionHookClientConfig": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.AdmissionHookClientConfig instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.AdmissionHookClientConfig" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.ExternalAdmissionHook": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHook instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHook" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfiguration" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.ExternalAdmissionHookConfigurationList": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfigurationList instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ExternalAdmissionHookConfigurationList" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.Initializer": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.Initializer instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Initializer" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.InitializerConfiguration": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfiguration" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.InitializerConfigurationList": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.InitializerConfigurationList instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.InitializerConfigurationList" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.Rule": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.Rule instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Rule" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.RuleWithOperations": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.RuleWithOperations instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.RuleWithOperations" - }, - "io.k8s.kubernetes.pkg.apis.admissionregistration.v1alpha1.ServiceReference": { - "description": "Deprecated. Please use io.k8s.api.admissionregistration.v1alpha1.ServiceReference instead.", - "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ServiceReference" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.ControllerRevision": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.ControllerRevision instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevision" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.ControllerRevisionList": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.ControllerRevisionList instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ControllerRevisionList" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.Deployment": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.Deployment instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Deployment" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.DeploymentCondition": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.DeploymentCondition instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentCondition" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.DeploymentList": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.DeploymentList instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentList" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.DeploymentRollback": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.DeploymentRollback instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentRollback" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.DeploymentSpec": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.DeploymentSpec instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentSpec" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.DeploymentStatus": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.DeploymentStatus instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStatus" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.DeploymentStrategy": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.DeploymentStrategy instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.DeploymentStrategy" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.RollbackConfig": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.RollbackConfig instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollbackConfig" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.RollingUpdateDeployment": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.RollingUpdateDeployment instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollingUpdateDeployment" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.RollingUpdateStatefulSetStrategy": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.RollingUpdateStatefulSetStrategy instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.RollingUpdateStatefulSetStrategy" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.Scale": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.Scale instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.Scale" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.ScaleSpec": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.ScaleSpec instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ScaleSpec" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.ScaleStatus": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.ScaleStatus instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.ScaleStatus" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.StatefulSet": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.StatefulSet instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSet" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.StatefulSetList": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.StatefulSetList instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetList" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.StatefulSetSpec": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.StatefulSetSpec instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetSpec" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.StatefulSetStatus": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.StatefulSetStatus instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetStatus" - }, - "io.k8s.kubernetes.pkg.apis.apps.v1beta1.StatefulSetUpdateStrategy": { - "description": "Deprecated. Please use io.k8s.api.apps.v1beta1.StatefulSetUpdateStrategy instead.", - "$ref": "#/definitions/io.k8s.api.apps.v1beta1.StatefulSetUpdateStrategy" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1.TokenReview": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1.TokenReview instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReview" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1.TokenReviewSpec": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1.TokenReviewSpec instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewSpec" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1.TokenReviewStatus": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1.TokenReviewStatus instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1.TokenReviewStatus" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1.UserInfo": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1.UserInfo instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1beta1.TokenReview": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1beta1.TokenReview instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReview" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1beta1.TokenReviewSpec": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1beta1.TokenReviewSpec instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReviewSpec" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1beta1.TokenReviewStatus": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1beta1.TokenReviewStatus instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.TokenReviewStatus" - }, - "io.k8s.kubernetes.pkg.apis.authentication.v1beta1.UserInfo": { - "description": "Deprecated. Please use io.k8s.api.authentication.v1beta1.UserInfo instead.", - "$ref": "#/definitions/io.k8s.api.authentication.v1beta1.UserInfo" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.LocalSubjectAccessReview": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.LocalSubjectAccessReview instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.LocalSubjectAccessReview" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.NonResourceAttributes": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.NonResourceAttributes instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.NonResourceAttributes" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.ResourceAttributes": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.ResourceAttributes instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.ResourceAttributes" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.SelfSubjectAccessReview": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.SelfSubjectAccessReview instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReview" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.SelfSubjectAccessReviewSpec": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.SubjectAccessReview": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.SubjectAccessReview instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReview" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.SubjectAccessReviewSpec": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.SubjectAccessReviewSpec instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewSpec" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1.SubjectAccessReviewStatus": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1.SubjectAccessReviewStatus instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.LocalSubjectAccessReview": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.LocalSubjectAccessReview instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.LocalSubjectAccessReview" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.NonResourceAttributes": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.NonResourceAttributes instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.NonResourceAttributes" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.ResourceAttributes": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.ResourceAttributes instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.ResourceAttributes" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.SelfSubjectAccessReview": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.SelfSubjectAccessReview instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectAccessReview" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.SelfSubjectAccessReviewSpec": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.SelfSubjectAccessReviewSpec instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SelfSubjectAccessReviewSpec" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.SubjectAccessReview": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.SubjectAccessReview instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReview" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.SubjectAccessReviewSpec": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.SubjectAccessReviewSpec instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReviewSpec" - }, - "io.k8s.kubernetes.pkg.apis.authorization.v1beta1.SubjectAccessReviewStatus": { - "description": "Deprecated. Please use io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus instead.", - "$ref": "#/definitions/io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.CrossVersionObjectReference": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.CrossVersionObjectReference instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.CrossVersionObjectReference" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.HorizontalPodAutoscaler": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerList": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerSpec": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.HorizontalPodAutoscalerStatus": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.Scale": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.Scale instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.Scale" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.ScaleSpec": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.ScaleSpec instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleSpec" - }, - "io.k8s.kubernetes.pkg.apis.autoscaling.v1.ScaleStatus": { - "description": "Deprecated. Please use io.k8s.api.autoscaling.v1.ScaleStatus instead.", - "$ref": "#/definitions/io.k8s.api.autoscaling.v1.ScaleStatus" - }, - "io.k8s.kubernetes.pkg.apis.batch.v1.Job": { - "description": "Deprecated. Please use io.k8s.api.batch.v1.Job instead.", - "$ref": "#/definitions/io.k8s.api.batch.v1.Job" - }, - "io.k8s.kubernetes.pkg.apis.batch.v1.JobCondition": { - "description": "Deprecated. Please use io.k8s.api.batch.v1.JobCondition instead.", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobCondition" - }, - "io.k8s.kubernetes.pkg.apis.batch.v1.JobList": { - "description": "Deprecated. Please use io.k8s.api.batch.v1.JobList instead.", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobList" - }, - "io.k8s.kubernetes.pkg.apis.batch.v1.JobSpec": { - "description": "Deprecated. Please use io.k8s.api.batch.v1.JobSpec instead.", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobSpec" - }, - "io.k8s.kubernetes.pkg.apis.batch.v1.JobStatus": { - "description": "Deprecated. Please use io.k8s.api.batch.v1.JobStatus instead.", - "$ref": "#/definitions/io.k8s.api.batch.v1.JobStatus" - }, - "io.k8s.kubernetes.pkg.apis.batch.v2alpha1.CronJob": { - "description": "Deprecated. Please use io.k8s.api.batch.v2alpha1.CronJob instead.", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJob" - }, - "io.k8s.kubernetes.pkg.apis.batch.v2alpha1.CronJobList": { - "description": "Deprecated. Please use io.k8s.api.batch.v2alpha1.CronJobList instead.", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobList" - }, - "io.k8s.kubernetes.pkg.apis.batch.v2alpha1.CronJobSpec": { - "description": "Deprecated. Please use io.k8s.api.batch.v2alpha1.CronJobSpec instead.", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobSpec" - }, - "io.k8s.kubernetes.pkg.apis.batch.v2alpha1.CronJobStatus": { - "description": "Deprecated. Please use io.k8s.api.batch.v2alpha1.CronJobStatus instead.", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.CronJobStatus" - }, - "io.k8s.kubernetes.pkg.apis.batch.v2alpha1.JobTemplateSpec": { - "description": "Deprecated. Please use io.k8s.api.batch.v2alpha1.JobTemplateSpec instead.", - "$ref": "#/definitions/io.k8s.api.batch.v2alpha1.JobTemplateSpec" - }, - "io.k8s.kubernetes.pkg.apis.certificates.v1beta1.CertificateSigningRequest": { - "description": "Deprecated. Please use io.k8s.api.certificates.v1beta1.CertificateSigningRequest instead.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequest" - }, - "io.k8s.kubernetes.pkg.apis.certificates.v1beta1.CertificateSigningRequestCondition": { - "description": "Deprecated. Please use io.k8s.api.certificates.v1beta1.CertificateSigningRequestCondition instead.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestCondition" - }, - "io.k8s.kubernetes.pkg.apis.certificates.v1beta1.CertificateSigningRequestList": { - "description": "Deprecated. Please use io.k8s.api.certificates.v1beta1.CertificateSigningRequestList instead.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestList" - }, - "io.k8s.kubernetes.pkg.apis.certificates.v1beta1.CertificateSigningRequestSpec": { - "description": "Deprecated. Please use io.k8s.api.certificates.v1beta1.CertificateSigningRequestSpec instead.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestSpec" - }, - "io.k8s.kubernetes.pkg.apis.certificates.v1beta1.CertificateSigningRequestStatus": { - "description": "Deprecated. Please use io.k8s.api.certificates.v1beta1.CertificateSigningRequestStatus instead.", - "$ref": "#/definitions/io.k8s.api.certificates.v1beta1.CertificateSigningRequestStatus" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DaemonSet": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DaemonSet instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSet" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DaemonSetList": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DaemonSetList instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetList" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DaemonSetSpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DaemonSetSpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetSpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DaemonSetStatus": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DaemonSetStatus instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetStatus" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DaemonSetUpdateStrategy": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DaemonSetUpdateStrategy instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DaemonSetUpdateStrategy" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.Deployment": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.Deployment instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Deployment" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DeploymentCondition": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DeploymentCondition instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentCondition" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DeploymentList": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DeploymentList instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentList" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DeploymentRollback": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DeploymentRollback instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentRollback" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DeploymentSpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DeploymentSpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentSpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DeploymentStatus": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DeploymentStatus instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStatus" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.DeploymentStrategy": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.DeploymentStrategy instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.DeploymentStrategy" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.FSGroupStrategyOptions": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.FSGroupStrategyOptions instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.FSGroupStrategyOptions" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.HTTPIngressPath": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.HTTPIngressPath instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.HTTPIngressPath" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.HTTPIngressRuleValue": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.HTTPIngressRuleValue instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.HTTPIngressRuleValue" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.HostPortRange": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.HostPortRange instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.HostPortRange" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IDRange": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IDRange instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IDRange" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.Ingress": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.Ingress instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Ingress" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IngressBackend": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IngressBackend instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressBackend" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IngressList": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IngressList instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressList" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IngressRule": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IngressRule instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressRule" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IngressSpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IngressSpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressSpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IngressStatus": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IngressStatus instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressStatus" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.IngressTLS": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.IngressTLS instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.IngressTLS" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.NetworkPolicy": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.NetworkPolicy instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicy" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.NetworkPolicyIngressRule": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.NetworkPolicyIngressRule instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyIngressRule" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.NetworkPolicyList": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.NetworkPolicyList instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyList" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.NetworkPolicyPeer": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.NetworkPolicyPeer instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyPeer" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.NetworkPolicyPort": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.NetworkPolicyPort instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicyPort" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.NetworkPolicySpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.NetworkPolicySpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.NetworkPolicySpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.PodSecurityPolicy": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.PodSecurityPolicy instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicy" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.PodSecurityPolicyList": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.PodSecurityPolicyList instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicyList" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.PodSecurityPolicySpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.PodSecurityPolicySpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.PodSecurityPolicySpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ReplicaSet": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ReplicaSet instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSet" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ReplicaSetCondition": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ReplicaSetCondition instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetCondition" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ReplicaSetList": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ReplicaSetList instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetList" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ReplicaSetSpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ReplicaSetSpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetSpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ReplicaSetStatus": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ReplicaSetStatus instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ReplicaSetStatus" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.RollbackConfig": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.RollbackConfig instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollbackConfig" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.RollingUpdateDaemonSet": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.RollingUpdateDaemonSet instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollingUpdateDaemonSet" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.RollingUpdateDeployment": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.RollingUpdateDeployment instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RollingUpdateDeployment" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.RunAsUserStrategyOptions": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.RunAsUserStrategyOptions instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.RunAsUserStrategyOptions" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.SELinuxStrategyOptions": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.SELinuxStrategyOptions instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.SELinuxStrategyOptions" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.Scale": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.Scale instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.Scale" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ScaleSpec": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ScaleSpec instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ScaleSpec" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.ScaleStatus": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.ScaleStatus instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.ScaleStatus" - }, - "io.k8s.kubernetes.pkg.apis.extensions.v1beta1.SupplementalGroupsStrategyOptions": { - "description": "Deprecated. Please use io.k8s.api.extensions.v1beta1.SupplementalGroupsStrategyOptions instead.", - "$ref": "#/definitions/io.k8s.api.extensions.v1beta1.SupplementalGroupsStrategyOptions" - }, - "io.k8s.kubernetes.pkg.apis.networking.v1.NetworkPolicy": { - "description": "Deprecated. Please use io.k8s.api.networking.v1.NetworkPolicy instead.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicy" - }, - "io.k8s.kubernetes.pkg.apis.networking.v1.NetworkPolicyIngressRule": { - "description": "Deprecated. Please use io.k8s.api.networking.v1.NetworkPolicyIngressRule instead.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyIngressRule" - }, - "io.k8s.kubernetes.pkg.apis.networking.v1.NetworkPolicyList": { - "description": "Deprecated. Please use io.k8s.api.networking.v1.NetworkPolicyList instead.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyList" - }, - "io.k8s.kubernetes.pkg.apis.networking.v1.NetworkPolicyPeer": { - "description": "Deprecated. Please use io.k8s.api.networking.v1.NetworkPolicyPeer instead.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPeer" - }, - "io.k8s.kubernetes.pkg.apis.networking.v1.NetworkPolicyPort": { - "description": "Deprecated. Please use io.k8s.api.networking.v1.NetworkPolicyPort instead.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicyPort" - }, - "io.k8s.kubernetes.pkg.apis.networking.v1.NetworkPolicySpec": { - "description": "Deprecated. Please use io.k8s.api.networking.v1.NetworkPolicySpec instead.", - "$ref": "#/definitions/io.k8s.api.networking.v1.NetworkPolicySpec" - }, - "io.k8s.kubernetes.pkg.apis.policy.v1beta1.Eviction": { - "description": "Deprecated. Please use io.k8s.api.policy.v1beta1.Eviction instead.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.Eviction" - }, - "io.k8s.kubernetes.pkg.apis.policy.v1beta1.PodDisruptionBudget": { - "description": "Deprecated. Please use io.k8s.api.policy.v1beta1.PodDisruptionBudget instead.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudget" - }, - "io.k8s.kubernetes.pkg.apis.policy.v1beta1.PodDisruptionBudgetList": { - "description": "Deprecated. Please use io.k8s.api.policy.v1beta1.PodDisruptionBudgetList instead.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetList" - }, - "io.k8s.kubernetes.pkg.apis.policy.v1beta1.PodDisruptionBudgetSpec": { - "description": "Deprecated. Please use io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec instead.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetSpec" - }, - "io.k8s.kubernetes.pkg.apis.policy.v1beta1.PodDisruptionBudgetStatus": { - "description": "Deprecated. Please use io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus instead.", - "$ref": "#/definitions/io.k8s.api.policy.v1beta1.PodDisruptionBudgetStatus" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.ClusterRole": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.ClusterRole instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRole" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.ClusterRoleBinding": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.ClusterRoleBinding instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBinding" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.ClusterRoleBindingList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleBindingList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.ClusterRoleList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.ClusterRoleList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.ClusterRoleList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.PolicyRule": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.PolicyRule instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.PolicyRule" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.Role": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.Role instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Role" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.RoleBinding": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.RoleBinding instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBinding" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.RoleBindingList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.RoleBindingList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleBindingList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.RoleList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.RoleList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.RoleRef": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.RoleRef instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.RoleRef" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1alpha1.Subject": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1alpha1.Subject instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1alpha1.Subject" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.ClusterRole": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.ClusterRole instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRole" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.ClusterRoleBinding": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.ClusterRoleBinding instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBinding" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.ClusterRoleBindingList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.ClusterRoleBindingList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleBindingList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.ClusterRoleList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.ClusterRoleList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.ClusterRoleList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.PolicyRule": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.PolicyRule instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.PolicyRule" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.Role": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.Role instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Role" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.RoleBinding": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.RoleBinding instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBinding" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.RoleBindingList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.RoleBindingList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleBindingList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.RoleList": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.RoleList instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleList" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.RoleRef": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.RoleRef instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.RoleRef" - }, - "io.k8s.kubernetes.pkg.apis.rbac.v1beta1.Subject": { - "description": "Deprecated. Please use io.k8s.api.rbac.v1beta1.Subject instead.", - "$ref": "#/definitions/io.k8s.api.rbac.v1beta1.Subject" - }, - "io.k8s.kubernetes.pkg.apis.settings.v1alpha1.PodPreset": { - "description": "Deprecated. Please use io.k8s.api.settings.v1alpha1.PodPreset instead.", - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPreset" - }, - "io.k8s.kubernetes.pkg.apis.settings.v1alpha1.PodPresetList": { - "description": "Deprecated. Please use io.k8s.api.settings.v1alpha1.PodPresetList instead.", - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPresetList" - }, - "io.k8s.kubernetes.pkg.apis.settings.v1alpha1.PodPresetSpec": { - "description": "Deprecated. Please use io.k8s.api.settings.v1alpha1.PodPresetSpec instead.", - "$ref": "#/definitions/io.k8s.api.settings.v1alpha1.PodPresetSpec" - }, - "io.k8s.kubernetes.pkg.apis.storage.v1.StorageClass": { - "description": "Deprecated. Please use io.k8s.api.storage.v1.StorageClass instead.", - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClass" - }, - "io.k8s.kubernetes.pkg.apis.storage.v1.StorageClassList": { - "description": "Deprecated. Please use io.k8s.api.storage.v1.StorageClassList instead.", - "$ref": "#/definitions/io.k8s.api.storage.v1.StorageClassList" - }, - "io.k8s.kubernetes.pkg.apis.storage.v1beta1.StorageClass": { - "description": "Deprecated. Please use io.k8s.api.storage.v1beta1.StorageClass instead.", - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClass" - }, - "io.k8s.kubernetes.pkg.apis.storage.v1beta1.StorageClassList": { - "description": "Deprecated. Please use io.k8s.api.storage.v1beta1.StorageClassList instead.", - "$ref": "#/definitions/io.k8s.api.storage.v1beta1.StorageClassList" - } - }, - "securityDefinitions": { - "BearerToken": { - "description": "Bearer Token authentication", - "type": "apiKey", - "name": "authorization", - "in": "header" - } - }, - "security": [ - { - "BearerToken": [] - } - ] -} \ No newline at end of file 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/stylecop.json b/stylecop.json new file mode 100644 index 000000000..c34e89b06 --- /dev/null +++ b/stylecop.json @@ -0,0 +1,10 @@ +{ + "$schema": + "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "orderingRules": { + "systemUsingDirectivesFirst": false, + "usingDirectivesPlacement": "outsideNamespace" + } + } +} diff --git a/swagger.json b/swagger.json new file mode 100644 index 000000000..2cc381669 --- /dev/null +++ b/swagger.json @@ -0,0 +1,111378 @@ +{ + "definitions": { + "v1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\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" + }, + "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" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object" + }, + "v1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object" + }, + "v1.MatchCondition": { + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", + "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 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.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": { + "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" + }, + "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.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", + "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" + }, + "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" + }, + "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", + "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": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object" + }, + "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/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/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": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "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", + "type": "string" + }, + "items": { + "description": "List of MutatingWebhookConfiguration.", + "items": { + "$ref": "#/definitions/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/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" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\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", + "x-kubernetes-map-type": "atomic" + }, + "v1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "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" + }, + "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." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.RuleWithOperations": { + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\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" + }, + "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" + }, + "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", + "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 metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$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": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" + } + ] + }, + "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": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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 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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + ] + }, + "v1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "ValidatingAdmissionPolicyBindingList", + "version": "v1" + } + ] + }, + "v1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "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." + }, + "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": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "ValidatingAdmissionPolicyList", + "version": "v1" + } + ] + }, + "v1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/definitions/v1.AuditAnnotation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\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" + }, + "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" + }, + "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." + }, + "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": { + "$ref": "#/definitions/v1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\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" + } + }, + "type": "object" + }, + "v1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "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" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": "integer" + }, + "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": { + "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" + }, + "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" + }, + "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." + }, + "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": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object" + }, + "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/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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "v1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, + "v1.Variable": { + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "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" + }, + "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`." + }, + "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" + }, + "v1alpha1.ApplyConfiguration": { + "description": "ApplyConfiguration defines the desired configuration values of an object.", + "properties": { + "expression": { + "description": "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec\n\nApply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:\n\n\tObject{\n\t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\t}\n\nApply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.\n\nCEL expressions have access to the object types needed to create apply configurations:\n\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.JSONPatch": { + "description": "JSONPatch defines a JSON Patch.", + "properties": { + "expression": { + "description": "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec\n\nexpression must return an array of JSONPatch values.\n\nFor example, this CEL expression returns a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo define an object for the patch value, use Object types. For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\",\n\t value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value: \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,\n integer, array, map or object. If set, the 'path' and 'from' fields must be set to a\n [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nCEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.MatchCondition": { + "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 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" + }, + "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": { + "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" + }, + "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" + }, + "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 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/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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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; 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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.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": "List of PolicyBinding.", + "items": { + "$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": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.MutatingAdmissionPolicyBindingSpec": { + "description": "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", + "properties": { + "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." + }, + "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." + }, + "policyName": { + "description": "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.MutatingAdmissionPolicyList": { + "description": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "MutatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.MutatingAdmissionPolicySpec": { + "description": "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", + "properties": { + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\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/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" + }, + "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." + }, + "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" + }, + "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." + }, + "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/v1alpha1.Variable" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1alpha1.Mutation": { + "description": "Mutation specifies the CEL expression which is used to apply the Mutation.", + "properties": { + "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." + }, + "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." + }, + "patchType": { + "description": "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.", + "type": "string" + } + }, + "required": [ + "patchType" + ], + "type": "object" + }, + "v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\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", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "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" + }, + "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` 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." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.Variable": { + "description": "Variable is the definition of a variable that is used for composition.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": "object" + }, + "v1beta1.ApplyConfiguration": { + "description": "ApplyConfiguration defines the desired configuration values of an object.", + "properties": { + "expression": { + "description": "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec\n\nApply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:\n\n\tObject{\n\t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\t}\n\nApply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.\n\nCEL expressions have access to the object types needed to create apply configurations:\n\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta1.JSONPatch": { + "description": "JSONPatch defines a JSON Patch.", + "properties": { + "expression": { + "description": "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec\n\nexpression must return an array of JSONPatch values.\n\nFor example, this CEL expression returns a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo define an object for the patch value, use Object types. For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\",\n\t value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value: \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,\n integer, array, map or object. If set, the 'path' and 'from' fields must be set to a\n [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nCEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta1.MatchCondition": { + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + "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 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" + }, + "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": { + "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" + }, + "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/v1beta1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1beta1.MutatingAdmissionPolicy": { + "description": "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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 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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" + } + ] + }, + "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": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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 metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" + } + ] + }, + "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": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "MutatingAdmissionPolicyBindingList", + "version": "v1beta1" + } + ] + }, + "v1beta1.MutatingAdmissionPolicyBindingSpec": { + "description": "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", + "properties": { + "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." + }, + "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." + }, + "policyName": { + "description": "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta1.MutatingAdmissionPolicyList": { + "description": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "MutatingAdmissionPolicyList", + "version": "v1beta1" + } + ] + }, + "v1beta1.MutatingAdmissionPolicySpec": { + "description": "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", + "properties": { + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\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/v1beta1.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" + }, + "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/v1beta1.Mutation" + }, + "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" + }, + "v1beta1.Mutation": { + "description": "Mutation specifies the CEL expression which is used to apply the Mutation.", + "properties": { + "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." + }, + "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." + }, + "patchType": { + "description": "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.", + "type": "string" + } + }, + "required": [ + "patchType" + ], + "type": "object" + }, + "v1beta1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\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", + "x-kubernetes-map-type": "atomic" + }, + "v1beta1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1beta1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "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" + }, + "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." + } + }, + "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" + }, + "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" + }, + "decodableVersions": { + "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": "string" + }, + "servedVersions": { + "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1alpha1.StorageVersion": { + "description": "Storage version of a specific resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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" + }, + "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": [ + "spec", + "status" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + ] + }, + "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 holds a list of StorageVersion", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "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/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/v1alpha1.ServerStorageVersion" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "v1.ControllerRevision": { + "description": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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" + } + }, + "required": [ + "revision" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ] + }, + "v1.DaemonSetCondition": { + "description": "DaemonSetCondition describes the state of a DaemonSet 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" + }, + "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" + }, + "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/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/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" + } + ] + }, + "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/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/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" + }, + "updateStrategy": { + "$ref": "#/definitions/v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." + } + }, + "required": [ + "selector", + "template" + ], + "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-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "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": "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.DaemonSetUpdateStrategy": { + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "properties": { + "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" + }, + "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/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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + ] + }, + "v1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "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.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "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/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/v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ] + }, + "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/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/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": [ + "selector", + "template" + ], + "type": "object" + }, + "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": "Represents the latest available observations of a deployment's current state.", + "items": { + "$ref": "#/definitions/v1.DeploymentCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "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 non-terminating pods targeted by this Deployment with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": "integer" + }, + "terminatingReplicas": { + "description": "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + "format": "int32", + "type": "integer" + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment 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-terminating pods targeted by this deployment that have the desired template spec.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "$ref": "#/definitions/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" + }, + "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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + ] + }, + "v1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set 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 replica set condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "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/replicaset", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "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 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.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": "Represents the latest available observations of a replica set's current state.", + "items": { + "$ref": "#/definitions/v1.ReplicaSetCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "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.RollingUpdateDaemonSet": { + "description": "Spec to control the desired behavior of daemon set rolling update.", + "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 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." + }, + "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." + }, + "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." + }, + "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" + } + }, + "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.\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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + ] + }, + "v1.StatefulSetCondition": { + "description": "StatefulSetCondition describes the state of a statefulset 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" + }, + "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" + }, + "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/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/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" + } + ] + }, + "v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "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" + }, + "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" + }, + "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." + }, + "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." + }, + "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/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/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\"." + }, + "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." + }, + "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" + }, + "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/v1.StatefulSetCondition" + }, + "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 for this StatefulSet with 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" + }, + "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.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" + }, + "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", + "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" + }, + "status": { + "$ref": "#/definitions/v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + ] + }, + "v1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, + "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/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" + } + ] + }, + "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 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": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "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." + }, + "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" + }, + "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.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/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" + }, + "status": { + "$ref": "#/definitions/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" + } + ] + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" + } + }, + "type": "object" + }, + "v1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": "boolean" + }, + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": "string" + }, + "user": { + "$ref": "#/definitions/v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." + } + }, + "type": "object" + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "type": "string" + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": "string" + } + }, + "type": "object" + }, + "v1.FieldSelectorAttributes": { + "description": "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": "string" + }, + "requirements": { + "description": "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "#/definitions/v1.FieldSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.LabelSelectorAttributes": { + "description": "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": "string" + }, + "requirements": { + "description": "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "#/definitions/v1.LabelSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource 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.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": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + ] + }, + "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" + }, + "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", + "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": "Group is the API Group of the Resource. \"*\" means all.", + "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": "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" + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\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": [ + "verbs" + ], + "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", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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 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" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ] + }, + "v1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "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" + } + }, + "type": "object" + }, + "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/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" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ] + }, + "v1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", + "properties": { + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": "string" + } + }, + "type": "object" + }, + "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/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" + }, + "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", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + ] + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "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.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" + }, + "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/v1.NonResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/definitions/v1.ResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "resourceRules", + "nonResourceRules", + "incomplete" + ], + "type": "object" + }, + "v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": "string" + }, + "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": "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", + "x-kubernetes-map-type": "atomic" + }, + "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/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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + ] + }, + "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 the 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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v1" + } + ] + }, + "v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", + "properties": { + "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.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", + "properties": { + "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" + }, + "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/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.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": "autoscaling", + "kind": "Scale", + "version": "v1" + } + ] + }, + "v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": "integer" + }, + "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": [ + "replicas" + ], + "type": "object" + }, + "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": { + "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/v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target", + "container" + ], + "type": "object" + }, + "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": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "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", + "current", + "container" + ], + "type": "object" + }, + "v2.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": "string" + }, + "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": "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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": { + "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" + }, + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max 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" + }, + "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." + } + }, + "type": "object" + }, + "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", + "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 metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$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/v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + ] + }, + "v2.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/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)." + }, + "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" + }, + "v2.HorizontalPodAutoscalerCondition": { + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "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)", + "type": "string" + }, + "type": { + "description": "type describes the current condition", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "v2.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/v2.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." + } + }, + "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." + }, + "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/v2.MetricSpec" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "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/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" + }, + "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" + }, + "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": [ + "desiredReplicas" + ], + "type": "object" + }, + "v2.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/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." + }, + "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)." + }, + "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)." + }, + "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." + }, + "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." + }, + "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": [ + "type" + ], + "type": "object" + }, + "v2.MetricStatus": { + "description": "MetricStatus describes the last-read state of a single metric.", + "properties": { + "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." + }, + "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": [ + "type" + ], + "type": "object" + }, + "v2.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/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/resource.Quantity", + "description": "value is the target value of the metric (as a quantity)." + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "v2.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" + }, + "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" + }, + "metric": { + "$ref": "#/definitions/v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/definitions/v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "describedObject", + "target", + "metric" + ], + "type": "object" + }, + "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": { + "current": { + "$ref": "#/definitions/v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "describedObject": { + "$ref": "#/definitions/v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "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" + }, + "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" + }, + "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" + }, + "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", + "current" + ], + "type": "object" + }, + "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 CronJobs.", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "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:\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" + }, + "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" + }, + "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" + }, + "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.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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "Job", + "version": "v1" + } + ] + }, + "v1.JobCondition": { + "description": "JobCondition describes current state of a job.", + "properties": { + "lastProbeTime": { + "description": "Last time the condition was checked.", + "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 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.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/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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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.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. 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.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object" + }, + "v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "properties": { + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": "string" + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\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": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator", + "values" + ], + "type": "object" + }, + "v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "properties": { + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": "string" + }, + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + "properties": { + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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" + }, + "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": { + "$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": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ] + }, + "v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.", + "format": "date-time", + "type": "string" + }, + "lastUpdateTime": { + "description": "lastUpdateTime is the time of the last update to this condition", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": "string" + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\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" + }, + "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" + }, + "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" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ] + }, + "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.", + "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" + }, + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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 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": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.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" + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "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" + }, + "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": [ + "trustBundle" + ], + "type": "object" + }, + "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", + "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 contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.PodCertificateRequestSpec", + "description": "spec contains the details about the certificate being requested." + }, + "status": { + "$ref": "#/definitions/v1alpha1.PodCertificateRequestStatus", + "description": "status contains the issued certificate, and a standard set of conditions." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1alpha1" + } + ] + }, + "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 collection of PodCertificateRequest objects", + "items": { + "$ref": "#/definitions/v1alpha1.PodCertificateRequest" + }, + "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": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequestList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.PodCertificateRequestSpec": { + "description": "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.", + "properties": { + "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" + }, + "nodeUID": { + "description": "nodeUID is the UID of the node the pod is assigned to.", + "type": "string" + }, + "pkixPublicKey": { + "description": "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.\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" + }, + "podName": { + "description": "podName is the name of the pod into which the certificate will be mounted.", + "type": "string" + }, + "podUID": { + "description": "podUID is the UID of the pod into which the certificate will be mounted.", + "type": "string" + }, + "proofOfPossession": { + "description": "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": [ + "signerName", + "podName", + "podUID", + "serviceAccountName", + "serviceAccountUID", + "nodeName", + "nodeUID", + "pkixPublicKey", + "proofOfPossession" + ], + "type": "object" + }, + "v1alpha1.PodCertificateRequestStatus": { + "description": "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.", + "properties": { + "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" + }, + "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.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" + }, + "notAfter": { + "description": "notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "format": "date-time", + "type": "string" + }, + "notBefore": { + "description": "notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "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": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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 contains the object metadata." + }, + "spec": { + "$ref": "#/definitions/v1beta1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" + } + ] + }, + "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" + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$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": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1beta1" + } + ] + }, + "v1beta1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "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" + }, + "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": [ + "trustBundle" + ], + "type": "object" + }, + "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/v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$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": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", + "properties": { + "acquireTime": { + "description": "acquireTime is a time when the current lease was acquired.", + "format": "date-time", + "type": "string" + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + "type": "string" + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", + "format": "int32", + "type": "integer" + }, + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": "integer" + }, + "preferredHolder": { + "description": "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + "type": "string" + }, + "renewTime": { + "description": "renewTime is a time when the current holder of a lease has last updated the lease.", + "format": "date-time", + "type": "string" + }, + "strategy": { + "description": "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha2.LeaseCandidate": { + "description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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": "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", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" + } + ] + }, + "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.", + "items": { + "$ref": "#/definitions/v1alpha2.LeaseCandidate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "v1alpha2" + } + ] + }, + "v1alpha2.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" + }, + "emulationVersion": { + "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "type": "string" + }, + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "type": "string" + }, + "pingTime": { + "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + "format": "date-time", + "type": "string" + }, + "renewTime": { + "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + "format": "date-time", + "type": "string" + }, + "strategy": { + "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "type": "string" + } + }, + "required": [ + "leaseName", + "binaryVersion", + "strategy" + ], + "type": "object" + }, + "v1beta1.LeaseCandidate": { + "description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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": "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", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" + } + ] + }, + "v1beta1.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.", + "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" + }, + "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" + }, + "emulationVersion": { + "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "type": "string" + }, + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + "type": "string" + }, + "pingTime": { + "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + "format": "date-time", + "type": "string" + }, + "renewTime": { + "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + "format": "date-time", + "type": "string" + }, + "strategy": { + "description": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + "type": "string" + } + }, + "required": [ + "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" + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": "integer" + }, + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "boolean" + }, + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "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" + }, + "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" + }, + "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" + } + }, + "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" + }, + "name": { + "description": "Name of the attached volume", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object" + }, + "v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": "string" + }, + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": "object" + }, + "v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure Share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object" + }, + "v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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" + }, + "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": "Binding", + "version": "v1" + } + ] + }, + "v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver", + "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 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": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": "string" + }, + "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": { + "type": "string" + }, + "description": "volumeAttributes of the volume to publish.", + "type": "object" + }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": "string" + } + }, + "required": [ + "driver", + "volumeHandle" + ], + "type": "object" + }, + "v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": "string" + }, + "nodePublishSecretRef": { + "$ref": "#/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." + }, + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": "boolean" + }, + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": "object" + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/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" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + } + }, + "required": [ + "monitors" + ], + "type": "object" + }, + "v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "boolean" + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": "string" + }, + "secretRef": { + "$ref": "#/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.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": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/definitions/v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "properties": { + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.ClusterTrustBundleProjection": { + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", + "properties": { + "labelSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "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\"." + }, + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", + "type": "string" + }, + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": "boolean" + }, + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": "string" + }, + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "v1.ComponentCondition": { + "description": "Information about the condition of a component.", + "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" + }, + "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/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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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/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" + } + ] + }, + "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. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMapList", + "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", + "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" + }, + "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": "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" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\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": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.Container": { + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/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" + }, + "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" + }, + "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/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 container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": "string" + }, + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/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" + }, + "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" + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/definitions/v1.ContainerResizePolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "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/" + }, + "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" + }, + "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" + }, + "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" + }, + "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/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. 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": [ + "name" + ], + "type": "object" + }, + "v1.ContainerExtendedResourceRequest": { + "description": "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.", + "properties": { + "containerName": { + "description": "The name of the container requesting resources.", + "type": "string" + }, + "requestName": { + "description": "The name of the request in the special ResourceClaim which corresponds to the extended resource.", + "type": "string" + }, + "resourceName": { + "description": "The name of the extended resource in that container which gets backed by DRA.", + "type": "string" + } + }, + "required": [ + "containerName", + "resourceName", + "requestName" + ], + "type": "object" + }, + "v1.ContainerImage": { + "description": "Describe a container image", + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": "string" + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": "string" + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": "string" + } + }, + "required": [ + "containerPort" + ], + "type": "object" + }, + "v1.ContainerResizePolicy": { + "description": "ContainerResizePolicy represents resource resize policy for the container.", + "properties": { + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": "string" + }, + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": "string" + } + }, + "required": [ + "resourceName", + "restartPolicy" + ], + "type": "object" + }, + "v1.ContainerRestartRule": { + "description": "ContainerRestartRule describes how a container exit is handled.", + "properties": { + "action": { + "description": "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.", + "type": "string" + }, + "exitCodes": { + "$ref": "#/definitions/v1.ContainerRestartRuleOnExitCodes", + "description": "Represents the exit codes to check on container exits." + } + }, + "required": [ + "action" + ], + "type": "object" + }, + "v1.ContainerRestartRuleOnExitCodes": { + "description": "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.", + "properties": { + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\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" + }, + "values": { + "description": "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator" + ], + "type": "object" + }, + "v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default 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.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.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", + "type": "string" + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "description": "Time at which the container last terminated", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": "string" + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": "string" + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "startedAt": { + "description": "Time at which previous execution of the container started", + "format": "date-time", + "type": "string" + } + }, + "required": [ + "exitCode" + ], + "type": "object" + }, + "v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": "string" + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": "string" + } + }, + "type": "object" + }, + "v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "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" + }, + "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" + }, + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": "string" + }, + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", + "type": "string" + }, + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", + "type": "string" + }, + "lastState": { + "$ref": "#/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." + }, + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": "boolean" + }, + "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." + }, + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", + "format": "int32", + "type": "integer" + }, + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": "boolean" + }, + "state": { + "$ref": "#/definitions/v1.ContainerState", + "description": "State holds details about the container's current condition." + }, + "stopSignal": { + "description": "StopSignal reports the effective stop signal for this container", + "type": "string" + }, + "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": [ + "Port" + ], + "type": "object" + }, + "v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "#/definitions/v1.DownwardAPIVolumeFile" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "$ref": "#/definitions/v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid 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/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.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/v1.DownwardAPIVolumeFile" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": "string" + }, + "sizeLimit": { + "$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" + } + }, + "type": "object" + }, + "v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.", + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": "string" + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", + "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/v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + }, + "required": [ + "ip" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.", + "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": "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" + }, + "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": { + "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", + "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" + } + }, + "type": "object" + }, + "v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]\n\nEndpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints.\n\nDeprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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" + }, + "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": "", + "kind": "Endpoints", + "version": "v1" + } + ] + }, + "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.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" + } + ] + }, + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets", + "properties": { + "configMapRef": { + "$ref": "#/definitions/v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='.", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": "object" + }, + "v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "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.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." + }, + "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." + }, + "fileKeyRef": { + "$ref": "#/definitions/v1.FileKeySelector", + "description": "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled." + }, + "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." + }, + "secretKeyRef": { + "$ref": "#/definitions/v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + }, + "type": "object" + }, + "v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "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" + }, + "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", + "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/v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." + }, + "livenessProbe": { + "$ref": "#/definitions/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/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/v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/definitions/v1.ContainerResizePolicy" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/definitions/v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + }, + "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" + }, + "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" + }, + "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." + }, + "startupProbe": { + "$ref": "#/definitions/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 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" + }, + "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/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": [ + "name" + ], + "type": "object" + }, + "v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "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." + } + }, + "type": "object" + }, + "core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "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" + }, + "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" + } + }, + "required": [ + "metadata", + "involvedObject" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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": { + "description": "Time of the last occurrence observed", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "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" + }, + "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", + "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" + }, + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": "integer" + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.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" + }, + "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" + }, + "path": { + "description": "The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'.", + "type": "string" + }, + "volumeName": { + "description": "The name of the volume mount containing the env file.", + "type": "string" + } + }, + "required": [ + "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" + }, + "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": [ + "driver" + ], + "type": "object" + }, + "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": "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.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": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": "string" + }, + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": "string" + } + }, + "type": "object" + }, + "v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\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" + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": "integer" + }, + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "boolean" + } + }, + "required": [ + "pdName" + ], + "type": "object" + }, + "v1.GRPCAction": { + "description": "GRPCAction specifies an action involving a GRPC service.", + "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.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": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": "string" + }, + "repository": { + "description": "repository is the URL", + "type": "string" + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": "string" + } + }, + "required": [ + "repository" + ], + "type": "object" + }, + "v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object" + }, + "v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology.", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "boolean" + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object" + }, + "v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "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/v1.HTTPHeader" + }, + "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": [ + "port" + ], + "type": "object" + }, + "v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": "object" + }, + "v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ip": { + "description": "IP address of the host file entry.", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": "object" + }, + "v1.HostIP": { + "description": "HostIP represents a single IP address allocated to the host.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the host", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": "object" + }, + "v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + }, + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": "object" + }, + "v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": "string" + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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": [ + "targetPortal", + "iqn", + "lun" + ], + "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.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": "boolean" + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": "boolean" + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": "string" + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": "string" + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": "string" + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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": [ + "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" + }, + "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/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.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.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", + "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.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" + } + ] + }, + "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": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "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/v1.LimitRangeItem" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "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" + }, + "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" + }, + "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": [ + "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" + }, + "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" + }, + "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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "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" + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of namespace controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "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/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/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" + } + ] + }, + "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", + "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" + }, + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "type": "string" + } + }, + "type": "object" + }, + "v1.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/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" + }, + "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": "Node", + "version": "v1" + } + ] + }, + "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" + }, + "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": "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.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/v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" + } + }, + "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" + }, + "v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "#/definitions/v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + }, + "type": "object" + }, + "v1.NodeFeatures": { + "description": "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.", + "properties": { + "supplementalGroupsPolicy": { + "description": "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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/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/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" + } + ] + }, + "v1.NodeRuntimeHandler": { + "description": "NodeRuntimeHandler is a set of runtime handler information.", + "properties": { + "features": { + "$ref": "#/definitions/v1.NodeRuntimeHandlerFeatures", + "description": "Supported features." + }, + "name": { + "description": "Runtime handler name. Empty for the default runtime handler.", + "type": "string" + } + }, + "type": "object" + }, + "v1.NodeRuntimeHandlerFeatures": { + "description": "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.", + "properties": { + "recursiveReadOnlyMounts": { + "description": "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + "type": "boolean" + }, + "userNamespaces": { + "description": "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "#/definitions/v1.NodeSelectorTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "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", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object" + }, + "v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "$ref": "#/definitions/v1.NodeSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "$ref": "#/definitions/v1.NodeSelectorRequirement" + }, + "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." + }, + "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-list-type": "set", + "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/v1.Taint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", + "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" + }, + "allocatable": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": "object" + }, + "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" + }, + "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" + }, + "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." + }, + "features": { + "$ref": "#/definitions/v1.NodeFeatures", + "description": "Features describes the set of features implemented by the CRI implementation." + }, + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "#/definitions/v1.ContainerImage" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "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" + }, + "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" + }, + "runtimeHandlers": { + "description": "The available runtime handlers.", + "items": { + "$ref": "#/definitions/v1.NodeRuntimeHandler" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "items": { + "$ref": "#/definitions/v1.AttachedVolume" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.NodeSwapStatus": { + "description": "NodeSwapStatus represents swap memory information.", + "properties": { + "capacity": { + "description": "Total amount of swap memory in bytes.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "v1.NodeSystemInfo": { + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "type": "string" + }, + "bootID": { + "description": "Boot ID reported by the node.", + "type": "string" + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": "string" + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": "string" + }, + "kubeProxyVersion": { + "description": "Deprecated: KubeProxy Version reported by the node.", + "type": "string" + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": "string" + }, + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": "string" + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": "string" + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" + }, + "swap": { + "$ref": "#/definitions/v1.NodeSwapStatus", + "description": "Swap Info reported by the node." + }, + "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" + }, + "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" + }, + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": "string" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": "string" + }, + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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.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": "", + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.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": "", + "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" + }, + "lastTransitionTime": { + "description": "lastTransitionTime is the time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": "string" + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": "object" + }, + "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": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "items": { + "$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" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ] + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "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." + }, + "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." + }, + "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" + }, + "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" + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": "string" + } + }, + "type": "object" + }, + "v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "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" + }, + "allocatedResourceStatuses": { + "additionalProperties": { + "type": "string" + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": "object", + "x-kubernetes-map-type": "granular" + }, + "allocatedResources": { + "additionalProperties": { + "$ref": "#/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" + }, + "capacity": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "capacity represents the actual resources of the underlying volume.", + "type": "object" + }, + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + "items": { + "$ref": "#/definitions/v1.PersistentVolumeClaimCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "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" + }, + "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 represents the current phase of PersistentVolumeClaim.", + "type": "string" + } + }, + "type": "object" + }, + "v1.PersistentVolumeClaimTemplate": { + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "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." + }, + "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": [ + "spec" + ], + "type": "object" + }, + "v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": "boolean" + } + }, + "required": [ + "claimName" + ], + "type": "object" + }, + "v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "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" + }, + "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.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": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": "object" + }, + "cephfs": { + "$ref": "#/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." + }, + "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" + }, + "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" + }, + "csi": { + "$ref": "#/definitions/v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver." + }, + "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-list-type": "atomic" + }, + "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" + }, + "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." + }, + "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.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" + }, + "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" + }, + "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" + }, + "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" + }, + "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/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.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "lastPhaseTransitionTime": { + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", + "type": "string" + }, + "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" + }, + "v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", + "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" + }, + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", + "type": "string" + } + }, + "required": [ + "pdID" + ], + "type": "object" + }, + "v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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.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.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.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/v1.WeightedPodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "properties": { + "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." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "$ref": "#/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." + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": "object" + }, + "v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "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 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.WeightedPodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.PodCertificateProjection": { + "description": "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.", + "properties": { + "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" + }, + "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" + }, + "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" + }, + "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": [ + "signerName", + "keyType" + ], + "type": "object" + }, + "v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", + "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" + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + "format": "int64", + "type": "integer" + }, + "reason": { + "description": "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" + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "#/definitions/v1.PodDNSConfigOption" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.PodDNSConfigOption": { + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Name is this DNS resolver option's name. Required.", + "type": "string" + }, + "value": { + "description": "Value is this DNS resolver option's value.", + "type": "string" + } + }, + "type": "object" + }, + "v1.PodExtendedResourceClaimStatus": { + "description": "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.", + "properties": { + "requestMappings": { + "description": "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.", + "items": { + "$ref": "#/definitions/v1.ContainerExtendedResourceRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.", + "type": "string" + } + }, + "required": [ + "requestMappings", + "resourceClaimName" + ], + "type": "object" + }, + "v1.PodIP": { + "description": "PodIP represents a single IP address allocated to the pod.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the pod", + "type": "string" + } + }, + "required": [ + "ip" + ], + "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", + "type": "string" + }, + "items": { + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "v1.PodOS": { + "description": "PodOS defines the OS parameters of a pod.", + "properties": { + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.PodReadinessGate": { + "description": "PodReadinessGate contains the reference to a pod condition", + "properties": { + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": "string" + } + }, + "required": [ + "conditionType" + ], + "type": "object" + }, + "v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\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": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\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": [ + "name" + ], + "type": "object" + }, + "v1.PodResourceClaimStatus": { + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "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." + }, + "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" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "seLinuxChangePolicy": { + "description": "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\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" + }, + "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": { + "format": "int64", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "supplementalGroupsPolicy": { + "description": "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "$ref": "#/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." + } + }, + "type": "object" + }, + "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/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/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" + }, + "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" + }, + "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" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "#/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" + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": "string" + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", + "type": "string" + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "#/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" + }, + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": "string" + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "type": "string" + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\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" + }, + "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": [ + "containers" + ], + "type": "object" + }, + "v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "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-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "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" + }, + "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" + }, + "extendedResourceClaimStatus": { + "$ref": "#/definitions/v1.PodExtendedResourceClaimStatus", + "description": "Status of extended resource claim backed by DRA." + }, + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "type": "string" + }, + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "#/definitions/v1.HostIP" + }, + "type": "array", + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "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" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": "string" + }, + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "type": "string" + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + "format": "int64", + "type": "integer" + }, + "phase": { + "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\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": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": "string" + }, + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "#/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" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": "string" + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "type": "string" + }, + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\" Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress. PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources. PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.", + "type": "string" + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "#/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" + }, + "startTime": { + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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" + }, + "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": "", + "kind": "PodTemplate", + "version": "v1" + } + ] + }, + "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/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.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" + } + ] + }, + "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" + }, + "v1.PortStatus": { + "description": "PortStatus 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" + }, + "port": { + "description": "Port is the port number of the service port of which status is recorded here", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, + "v1.PortworxVolumeSource": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": "object" + }, + "v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "$ref": "#/definitions/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" + }, + "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/v1.ExecAction", + "description": "Exec specifies a command to execute in the container." + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": "integer" + }, + "grpc": { + "$ref": "#/definitions/v1.GRPCAction", + "description": "GRPC specifies a GRPC HealthCheckRequest." + }, + "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" + }, + "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" + } + }, + "type": "object" + }, + "v1.ProjectedVolumeSource": { + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "sources": { + "description": "sources is the list of volume projections. Each entry in this list handles one source.", + "items": { + "$ref": "#/definitions/v1.VolumeProjection" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "group to map volume access to Default is no group", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": "boolean" + }, + "registry": { + "description": "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": "string" + }, + "tenant": { + "description": "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": "string" + }, + "user": { + "description": "user to map volume access to Defaults to serivceaccount user", + "type": "string" + }, + "volume": { + "description": "volume is a string that references an already created Quobyte volume by name.", + "type": "string" + } + }, + "required": [ + "registry", + "volume" + ], + "type": "object" + }, + "v1.RBDPersistentVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": "string" + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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": [ + "monitors", + "image" + ], + "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.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": "string" + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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": [ + "monitors", + "image" + ], + "type": "object" + }, + "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/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/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": "", + "kind": "ReplicationController", + "version": "v1" + } + ] + }, + "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 replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/definitions/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/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" + } + ] + }, + "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/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" + }, + "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" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "format": "int64", + "type": "integer" + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "format": "int32", + "type": "integer" + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": "object" + }, + "core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + }, + "request": { + "description": "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "$ref": "#/definitions/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" + }, + "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": { + "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" + }, + "resourceID": { + "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + "type": "string" + } + }, + "required": [ + "resourceID" + ], + "type": "object" + }, + "v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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.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": "ResourceQuota", + "version": "v1" + } + ] + }, + "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/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" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuotaList", + "version": "v1" + } + ] + }, + "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", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "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" + }, + "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.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "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": { + "$ref": "#/definitions/core.v1.ResourceClaim" + }, + "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" + }, + "v1.ResourceStatus": { + "description": "ResourceStatus represents the status of a single resource allocated to a Pod.", + "properties": { + "name": { + "description": "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", + "type": "string" + }, + "resources": { + "description": "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.", + "items": { + "$ref": "#/definitions/v1.ResourceHealth" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "resourceID" + ], + "x-kubernetes-list-type": "map" + } + }, + "required": [ + "name" + ], + "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.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + }, + "type": "object" + }, + "v1.ScaleIOPersistentVolumeSource": { + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + "type": "string" + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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" + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": "string" + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": "string" + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object" + }, + "v1.ScaleIOVolumeSource": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": "string" + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": "string" + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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." + }, + "sslEnabled": { + "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + "type": "boolean" + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": "string" + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": "string" + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": "string" + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object" + }, + "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/v1.ScopedResourceSelectorRequirement" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.ScopedResourceSelectorRequirement": { + "description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + "properties": { + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "type": "string" + }, + "scopeName": { + "description": "The name of the scope that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "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-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "v1.Secret": { + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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/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. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Secret", + "version": "v1" + } + ] + }, + "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. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.SecretList": { + "description": "SecretList is a list of Secret.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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/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.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" + } + ] + }, + "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": "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" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional field specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "type": "object" + }, + "v1.SecretReference": { + "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", + "type": "string" + }, + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\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": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": "string" + } + }, + "type": "object" + }, + "v1.SecurityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + "type": "boolean" + }, + "appArmorProfile": { + "$ref": "#/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." + }, + "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." + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + "type": "boolean" + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + "type": "boolean" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "$ref": "#/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." + } + }, + "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.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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.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": "", + "kind": "Service", + "version": "v1" + } + ] + }, + "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" + }, + "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" + }, + "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.ObjectReference" + }, + "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": "ServiceAccount", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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" + }, + "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/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/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" + } + ] + }, + "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": "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/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" + }, + "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.", + "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\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": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "externalName": { + "description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + "type": "string" + }, + "externalTrafficPolicy": { + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", + "type": "string" + }, + "healthCheckNodePort": { + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + "format": "int32", + "type": "integer" + }, + "internalTrafficPolicy": { + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", + "type": "string" + }, + "ipFamilies": { + "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\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" + }, + "loadBalancerClass": { + "description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + "type": "string" + }, + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + "type": "string" + }, + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "$ref": "#/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" + }, + "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" + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", + "type": "string" + } + }, + "type": "object" + }, + "v1.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "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" + }, + "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" + } + }, + "required": [ + "seconds" + ], + "type": "object" + }, + "v1.StorageOSPersistentVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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" + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": "string" + } + }, + "type": "object" + }, + "v1.StorageOSVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": "string" + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": "boolean" + }, + "secretRef": { + "$ref": "#/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.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" + }, + "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/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" + }, + "key": { + "description": "Required. The taint key to be applied to a node.", + "type": "string" + }, + "timeAdded": { + "description": "TimeAdded represents the time at which the taint was added.", + "format": "date-time", + "type": "string" + }, + "value": { + "description": "The taint value corresponding to the taint key.", + "type": "string" + } + }, + "required": [ + "key", + "effect" + ], + "type": "object" + }, + "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" + }, + "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", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "values" + ], + "type": "object" + }, + "v1.TopologySelectorTerm": { + "description": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + "properties": { + "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" + }, + "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" + }, + "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": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "type": "object" + }, + "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" + }, + "v1.TypedObjectReference": { + "description": "TypedObjectReference contains enough information to let you locate the typed referenced object", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "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. 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" + }, + "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" + }, + "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. 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": [ + "name" + ], + "type": "object" + }, + "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" + }, + "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. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).", + "type": "string" + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\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": [ + "name", + "mountPath" + ], + "type": "object" + }, + "v1.VolumeMountStatus": { + "description": "VolumeMountStatus shows status of volume mounts.", + "properties": { + "mountPath": { + "description": "MountPath corresponds to the original VolumeMount.", + "type": "string" + }, + "name": { + "description": "Name corresponds to the name of the original VolumeMount.", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly corresponds to the original VolumeMount.", + "type": "boolean" + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + "type": "string" + } + }, + "required": [ + "name", + "mountPath" + ], + "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.VolumeProjection": { + "description": "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + "properties": { + "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" + }, + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": "string" + }, + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": "string" + }, + "volumePath": { + "description": "volumePath is the path that identifies vSphere volume vmdk", + "type": "string" + } + }, + "required": [ + "volumePath" + ], + "type": "object" + }, + "v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "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": "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" + }, + "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 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. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type.", + "type": "string" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "endpoints": { + "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", + "items": { + "$ref": "#/definitions/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/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. 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" + }, + "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" + } + ] + }, + "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 endpoint slices", + "items": { + "$ref": "#/definitions/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/v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" + } + ] + }, + "v1.ForNode": { + "description": "ForNode provides information about which nodes should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the node.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.ForZone": { + "description": "ForZone provides information about which zones should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the zone.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "events.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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" + } + }, + "required": [ + "eventTime" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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": { + "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", + "format": "date-time", + "type": "string" + } + }, + "required": [ + "count", + "lastObservedTime" + ], + "type": "object" + }, + "v1.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\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" + }, + "v1.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" + }, + "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", + "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/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.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": "v1" + } + ] + }, + "v1.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" + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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/v1.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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." + }, + "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/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." + }, + "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.PolicyRulesWithSubjects" + }, + "type": "array", + "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" + } + }, + "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\"`." + }, + "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" + }, + "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" + }, + "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": { + "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" + }, + "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": { + "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" + }, + "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": [ + "subjects" + ], + "type": "object" + }, + "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", + "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/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.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": "v1" + } + ] + }, + "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 request-priorities.", + "items": { + "$ref": "#/definitions/v1.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1" + } + ] + }, + "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": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": "integer" + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": "integer" + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1.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": { + "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" + }, + "v1.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" + }, + "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` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/definitions/v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/definitions/v1.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" + } + } + ] + }, + "v1.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" + }, + "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": "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" + }, + "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", + "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.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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1" + } + ] + }, + "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.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": "IPAddressList", + "version": "v1" + } + ] + }, + "v1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "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" + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": "object" + }, + "v1.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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ] + }, + "v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", + "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\"." + } + }, + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.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" + } + ] + }, + "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/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/v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "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\".", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "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/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.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/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/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" + } + ] + }, + "v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "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" + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, + "v1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "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.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/v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "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." + }, + "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": { + "$ref": "#/definitions/v1.IngressRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "tls": { + "description": "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "items": { + "$ref": "#/definitions/v1.IngressTLS" + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "secretName": { + "description": "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + "type": "string" + } + }, + "type": "object" + }, + "v1.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/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.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": "NetworkPolicy", + "version": "v1" + } + ] + }, + "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": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/definitions/v1.NetworkPolicyPort" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "to": { + "description": "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", + "items": { + "$ref": "#/definitions/v1.NetworkPolicyPeer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "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.", + "properties": { + "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" + }, + "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" + } + }, + "type": "object" + }, + "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.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" + } + ] + }, + "v1.NetworkPolicyPeer": { + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "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": "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" + }, + "v1.NetworkPolicyPort": { + "description": "NetworkPolicyPort describes a port to allow traffic on", + "properties": { + "endPort": { + "description": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + "format": "int32", + "type": "integer" + }, + "port": { + "$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." + }, + "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" + }, + "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" + }, + "podSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "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." + }, + "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" + } + }, + "type": "object" + }, + "v1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": "string" + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": "string" + } + }, + "required": [ + "resource", + "name" + ], + "type": "object" + }, + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + ] + }, + "v1.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 the list of ServiceCIDRs.", + "items": { + "$ref": "#/definitions/v1.ServiceCIDR" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1" + } + ] + }, + "v1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "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" + }, + "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": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1beta1" + } + ] + }, + "v1beta1.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/v1beta1.IPAddress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1beta1" + } + ] + }, + "v1beta1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "#/definitions/v1beta1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": "object" + }, + "v1beta1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": "string" + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": "string" + } + }, + "required": [ + "resource", + "name" + ], + "type": "object" + }, + "v1beta1.ServiceCIDR": { + "description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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/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/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" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1beta1" + } + ] + }, + "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 the list of ServiceCIDRs.", + "items": { + "$ref": "#/definitions/v1beta1.ServiceCIDR" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/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": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1beta1" + } + ] + }, + "v1beta1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1beta1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "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.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" + }, + "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/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." + } + }, + "required": [ + "handler" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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/v1.Toleration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.Eviction": { + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest 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." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ] + }, + "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/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" + } + ] + }, + "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/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/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" + } + ] + }, + "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" + }, + "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" + } + }, + "type": "object" + }, + "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", + "type": "integer" + }, + "disruptedPods": { + "additionalProperties": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string" + }, + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": "object" + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "format": "int32", + "type": "integer" + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" + ], + "type": "object" + }, + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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." + }, + "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": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + ] + }, + "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/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. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/rbac.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + ] + }, + "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/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/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.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/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." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ] + }, + "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. \"\" represents the core API group and \"*\" represents all API groups.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": "string" + }, + "type": "array", + "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" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "#/definitions/v1.PolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ] + }, + "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/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. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/rbac.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ] + }, + "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/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." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", + "version": "v1" + } + ] + }, + "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/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/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" + } + ] + }, + "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" + }, + "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" + }, + "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": { + "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" + }, + "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" + }, + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": "string" + }, + "driver": { + "description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" + }, + "networkData": { + "$ref": "#/definitions/v1.NetworkDeviceData", + "description": "NetworkData contains network-related information specific to the device." + }, + "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" + }, + "shareID": { + "description": "ShareID uniquely identifies an individual allocation share of the device.", + "type": "string" + } + }, + "required": [ + "driver", + "pool", + "device" + ], + "type": "object" + }, + "v1.AllocationResult": { + "description": "AllocationResult contains attributes of an allocated resource.", + "properties": { + "allocationTimestamp": { + "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", + "format": "date-time", + "type": "string" + }, + "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.CapacityRequestPolicy": { + "description": "CapacityRequestPolicy defines how requests consume device capacity.\n\nMust not set more than one ValidRequestValues.", + "properties": { + "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." + }, + "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/resource.Quantity" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "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": { + "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." + }, + "min": { + "$ref": "#/definitions/resource.Quantity", + "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." + }, + "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": [ + "min" + ], + "type": "object" + }, + "v1.CapacityRequirements": { + "description": "CapacityRequirements defines the capacity requirements for a specific device request.", + "properties": { + "requests": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "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" + }, + "v1.Counter": { + "description": "Counter describes a quantity associated with a device.", + "properties": { + "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" + }, + "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" + }, + "name": { + "description": "Name defines the name of the counter set. It must be a DNS label.", + "type": "string" + } + }, + "required": [ + "name", + "counters" + ], + "type": "object" + }, + "v1.Device": { + "description": "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.", + "properties": { + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "name": { + "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", + "type": "string" + }, + "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": [ + "name" + ], + "type": "object" + }, + "v1.DeviceAllocationConfiguration": { + "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", + "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, 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" + }, + "source": { + "description": "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.", + "type": "string" + } + }, + "required": [ + "source" + ], + "type": "object" + }, + "v1.DeviceAllocationResult": { + "description": "DeviceAllocationResult is the result of allocating devices.", + "properties": { + "config": { + "description": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\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" + }, + "results": { + "description": "Results lists all allocated devices.", + "items": { + "$ref": "#/definitions/v1.DeviceRequestAllocationResult" + }, + "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" + }, + "int": { + "description": "IntValue is a number.", + "format": "int64", + "type": "integer" + }, + "string": { + "description": "StringValue is a string. Must not be longer than 64 characters.", + "type": "string" + }, + "version": { + "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", + "type": "string" + } + }, + "type": "object" + }, + "v1.DeviceCapacity": { + "description": "DeviceCapacity describes a quantity associated with a device.", + "properties": { + "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." + }, + "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": [ + "value" + ], + "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.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", + "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 metadata" + }, + "spec": { + "$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": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1" + } + ] + }, + "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.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClassList", + "version": "v1" + } + ] + }, + "v1.DeviceClassSpec": { + "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", + "properties": { + "config": { + "description": "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.\n\nThey are passed to the driver, but are not considered while allocating the claim.", + "items": { + "$ref": "#/definitions/v1.DeviceClassConfiguration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "extendedResourceName": { + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is an alpha field.", + "type": "string" + }, + "selectors": { + "description": "Each selector must be satisfied by a device which is claimed via this class.", + "items": { + "$ref": "#/definitions/v1.DeviceSelector" + }, + "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" + }, + "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" + }, + "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", + "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" + }, + "counters": { + "additionalProperties": { + "$ref": "#/definitions/v1.Counter" + }, + "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." + }, + "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": { + "$ref": "#/definitions/v1.DeviceSubRequest" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\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" + }, + "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", + "x-kubernetes-list-type": "atomic" + }, + "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": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "consumedCapacity": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device\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" + }, + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": "string" + }, + "driver": { + "description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" + }, + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", + "type": "string" + }, + "request": { + "description": "Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/.\n\nMultiple devices may have been allocated per request.", + "type": "string" + }, + "shareID": { + "description": "ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.", + "type": "string" + }, + "tolerations": { + "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "items": { + "$ref": "#/definitions/v1.DeviceToleration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "request", + "driver", + "pool", + "device" + ], + "type": "object" + }, + "v1.DeviceSelector": { + "description": "DeviceSelector must have exactly one field set.", + "properties": { + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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/v1.DeviceToleration" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "deviceClassName" + ], + "type": "object" + }, + "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": { + "effect": { + "description": "The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.", + "type": "string" + }, + "key": { + "description": "The taint key to be applied to a device. Must be a label name.", + "type": "string" + }, + "timeAdded": { + "description": "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.", + "format": "date-time", + "type": "string" + }, + "value": { + "description": "The taint value corresponding to the taint key. Must be a label value.", + "type": "string" + } + }, + "required": [ + "key", + "effect" + ], + "type": "object" + }, + "v1.DeviceToleration": { + "description": "The ResourceClaim this DeviceToleration 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 and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as